pytorch error: isDifferentiableType(variable.scalar_type())

RuntimeError: isDifferentiableType(variable.scalar_type()) INTERNAL ASSERT FAILED at "/opt/conda/conda-bld/pytorch_1595629401553/work/torch/csrc/autograd/functions/utils.h":59, please report a bug to PyTorch. 

代码加上:

with torch.no_grad():

猜你喜欢

转载自blog.csdn.net/u012939880/article/details/108463920
今日推荐