发布时间:2023-06-04 19:00
问题描述:
【功能模块】
在训练时报错,提示算子不支持gpu类型
【操作步骤&问题现象】
1、开始训练,加载数据,走到train时就报错
【截图信息】
[EXCEPTION] DEVICE(35811,7f3f576f62c0,python):2022-03-03-07:28:44.866.790 [mindspore/ccsrc/runtime/device/gpu/kernel_info_setter.cc:83] SupportedTypeList] Unsupported op [Ceil] on GPU
Traceback (most recent call last):
File "train.py", line 477, in
train(train_paths, s3Client, trainlog, valid_paths)
File "train.py", line 373, in train
train_model(train_x, train_y)
File "/root/miniconda3/envs/py3/lib/python3.7/site-packages/mindspore/nn/cell.py", line 407, in __call__
out = self.compile_and_run(*inputs)
File "/root/miniconda3/envs/py3/lib/python3.7/site-packages/mindspore/nn/cell.py", line 734, in compile_and_run
self.compile(*inputs)
File "/root/miniconda3/envs/py3/lib/python3.7/site-packages/mindspore/nn/cell.py", line 721, in compile
_cell_graph_executor.compile(self, *inputs, phase=self.phase, auto_parallel_mode=self._auto_parallel_mode)
File "/root/miniconda3/envs/py3/lib/python3.7/site-packages/mindspore/common/api.py", line 551, in compile
result = self._graph_executor.compile(obj, args_list, phase, use_vm, self.queue_name)
RuntimeError: mindspore/ccsrc/runtime/device/gpu/kernel_info_setter.cc:83 SupportedTypeList] Unsupported op [Ceil] on GPU
解答:
可以用mindspore.numpy.ceil 或者你自己实现一个:
ceil(x) = -floor(-x)
ops.Floor算子是支持全平台的。
在puppeteer中使用node.js创建子进程并使用WebSocket和Ipc实现进程间通信,从而实现数据的快速爬取
基于Java 利用Mybatis实现oracle批量插入及分页查询
Spring注解@Configuration与@Bean注册组件的使用详解
鸿蒙HarmonyOS 3官宣:7月27日正式发布;苹果2023年放缓部分团队招聘和支出;俄罗斯对谷歌重罚26亿元|极客头条
c语言大作业是什么意思,高分悬赏C语言作业!!!!!急!!!!!
Hadoop生态系统之Hive和HBase and Zookeeper
【安卓基础】Android直接通过路径来操作其他应用的私有目录,可以吗?