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():
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():