报错信息:RuntimeError: isDifferentiableType(variable.scalar_type()) INTERNAL ASSERT FAILED at ...

 

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

 

 

解决办法:

加上去   with t.no_grad():

 

你可能感兴趣的:(深度学习&机器学习)