Traceback (most recent call last):
File "txt2img.py", line 299, in <module>
main()
File "txt2img.py", line 262, in main
uc = model.get_learned_conditioning(batch_size * [""])
File "/home/ma-user/work/minddiffusion/vision/wukong-huahua/ldm/models/diffusion/ddpm.py", line 256, in get_learned_conditioning
c = self.cond_stage_model.encode(c)
File "/home/ma-user/work/minddiffusion/vision/wukong-huahua/ldm/modules/encoders/modules.py", line 53, in encode
batch_encoding = self.tokenize(text)
File "/home/ma-user/work/minddiffusion/vision/wukong-huahua/ldm/modules/encoders/modules.py", line 48, in tokenize
result[i, : len(tokens)] = Tensor(tokens)
File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.7/site-packages/mindspore/common/tensor.py", line 389, in __setitem__
out = tensor_operator_registry.get('__setitem__')(self, index, value)
File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.7/site-packages/mindspore/ops/composite/multitype_ops/_compile_utils.py", line 78, in _tensor_setitem
return tensor_setitem_by_tuple(self, index, value)
File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.7/site-packages/mindspore/ops/composite/multitype_ops/_compile_utils.py", line 814, in tensor_setitem_by_tuple
return tensor_setitem_by_tuple_with_tensor(self, index, value)
File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.7/site-packages/mindspore/ops/composite/multitype_ops/_compile_utils.py", line 1030, in tensor_setitem_by_tuple_with_tensor
return F.tensor_scatter_update(data, indices, updates)
File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.7/site-packages/mindspore/ops/primitive.py", line 296, in __call__
return _run_op(self, self.name, args)
File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.7/site-packages/mindspore/common/api.py", line 98, in wrapper
results = fn(*arg, **kwargs)
File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.7/site-packages/mindspore/ops/primitive.py", line 733, in _run_op
output = real_run_op(obj, op_name, args)
TypeError: Can not select a valid kernel info for [ScatterNdUpdate] in AI CORE or AI CPU kernel info candidates list:
AI CORE:
(<Float16xDefaultFormat>, <Int32xDefaultFormat>, <Float16xDefaultFormat>) -> (<Float16xDefaultFormat>)
(<Float32xDefaultFormat>, <Int32xDefaultFormat>, <Float32xDefaultFormat>) -> (<Float32xDefaultFormat>)
(<Int8xDefaultFormat>, <Int32xDefaultFormat>, <Int8xDefaultFormat>) -> (<Int8xDefaultFormat>)
(<UInt8xDefaultFormat>, <Int32xDefaultFormat>, <UInt8xDefaultFormat>) -> (<UInt8xDefaultFormat>)
(<BoolxDefaultFormat>, <Int32xDefaultFormat>, <BoolxDefaultFormat>) -> (<BoolxDefaultFormat>)
(<Float16xDefaultFormat>, <Int64xDefaultFormat>, <Float16xDefaultFormat>) -> (<Float16xDefaultFormat>)
(<Float32xDefaultFormat>, <Int64xDefaultFormat>, <Float32xDefaultFormat>) -> (<Float32xDefaultFormat>)
(<Int8xDefaultFormat>, <Int64xDefaultFormat>, <Int8xDefaultFormat>) -> (<Int8xDefaultFormat>)
(<UInt8xDefaultFormat>, <Int64xDefaultFormat>, <UInt8xDefaultFormat>) -> (<UInt8xDefaultFormat>)
(<BoolxDefaultFormat>, <Int64xDefaultFormat>, <BoolxDefaultFormat>) -> (<BoolxDefaultFormat>)
AI CPU:
{}
Please check the given data type or shape:
AI CORE: : (<Tensor[Int64], (4, 77)>, <Tensor[Int64], (2, 2)>, <Tensor[Int64], (2)>) -> (<Tensor[Int64], (4, 77)>)
AI CPU: : (<Tensor[Int64], (4, 77)>, <Tensor[Int64], (2, 2)>, <Tensor[Int64], (2)>) -> (<Tensor[Int64], (4, 77)>)
For more details, please refer to 'Kernel Select Failed' at https://www.mindspore.cn
----------------------------------------------------
- C++ Call Stack: (For framework developers)
----------------------------------------------------
mindspore/ccsrc/plugin/device/ascend/hal/hardware/ascend_graph_optimization.cc:379 SetOperatorInfo