paddle.to_tensor内存访问错误
收藏
把np数组转成tensor的时候报错
代码:
>>>for i, _ in enumerate(dataset):
>>>. if i % 100 == 0:
>>>. a, __, __ = _
>>>. print(type(a)) #
>>>. print(a.shape) # (7, 3, 224, 224)
>>>. paddle.to_tensor(a)
>>>. break
报错:
OSError: (External) CUDA error(700), an illegal memory access was encountered.
[Hint: 'cudaErrorIllegalAddress'. The device encountered a load or store instruction on an invalid memory address. This leaves the process in an inconsistentstate and any further CUDA work will return the same error. To continue using CUDA, the process must be terminated and relaunched. ] (at /paddle/paddle/phi/backends/gpu/cuda/cuda_info.cc:258)
0
收藏
请登录后评论
我也遇到了这个问题,有大佬解决了吗