在Linux上使用libtorch时报错:
terminate called after throwing an instance of 'c10::Error'
what(): isTuple()INTERNAL ASSERT FAILED at ../aten/src/ATen/core/ivalue_inl.h:1400
出错语句为
...
torch::jit::script::Module model_high;
output = model_high.forward(inputs).toTensor();
...
版本:
libtorch 1.9.0
CUDA 10.2