-
Notifications
You must be signed in to change notification settings - Fork 43
Description
mindspore=2.4.10, cann版本: 8.0rc2alpha003
运行离线案例cyclegan报错:
RuntimeError Traceback (most recent call last)
/tmp/ipykernel_8927/451043146.py in <cell line: 1>()
----> 1 main()
/tmp/ipykernel_8927/3977040008.py in main()
19 img, fake = cyclegan.inference(dataset) # 推理
20 # postprocess
---> 21 cyclegan.post_process(img, fake) # 后处理
/usr/local/Ascend/thirdpart/aarch64/acllite/acllite_utils.py in wrapper(*args, **kwargs)
244 if DEBUG:
245 btime = time.time()
--> 246 res = func(*args, **kwargs)
247 use_time = time.time() - btime
248 print("in %s, use time:%s" % (func.name, use_time))
/tmp/ipykernel_8927/3577137142.py in post_process(self, img, fake)
56 fig.add_subplot(2, 1, 1)
57 plt.axis("off")
---> 58 plt.imshow(img.asnumpy())
59
60 fig.add_subplot(2, 1, 2)
~/.local/lib/python3.9/site-packages/mindspore/common/_stub_tensor.py in fun(*arg, **kwargs)
47 stub = arg[0]
48 arg = (stub.stub_sync(),) + arg[1:]
---> 49 return method(*arg, **kwargs)
50 return fun
51
~/.local/lib/python3.9/site-packages/mindspore/common/tensor.py in asnumpy(self)
1068 if self.has_init:
1069 self.init_data()
-> 1070 return Tensor_.asnumpy(self)
1071
1072 def numpy(self, *, force=False):
RuntimeError: aclSetTensorAddr is nullptr
- C++ Call Stack: (For framework developers)
mindspore/ccsrc/transform/acl_ir/op_api_convert.h:947 UpdateAddress