RuntimeError: No function is registered for schema aten::thnn_conv3d_forward(Tensor self, Tensor wei

RuntimeError: No function is registered for schema aten::thnn_conv3d_forward(Tensor self, Tensor weight, int[3] kernel_size, Tensor? bias, int[3] stride, int[3] padding) -> (Tensor output, Tensor finput, Tensor fgrad_input) on tensor type CUDATensorId; available functions are CPUTensorId, VariableTensorId

详细错误如上
解决方案:保证数据和模型都有在cuda上
model.cuda()
inputs.cuda()

猜你喜欢

转载自blog.csdn.net/qq_33859479/article/details/110563119