I think it has to do with a version mismatch with libtorch and pytorch (where I export the traced model), but I’m not sure how to tell which libtorch/pytorch version combo I need to support Cuda 10.0. I think this because it says GPUs are available when I download this other version of libtorch, but I’m unable to load my model.
https://download.pytorch.org/libtorch/cu100/libtorch-shared-with-deps-latest.zip 13
CUDA is available! Training on GPU.
terminate called after throwing an instance of 'c10::Error'
  what():  [enforce fail at inline_container.cc:137] . PytorchStreamReader failed closing reader: file not found
frame #0: c10::ThrowEnforceNotMet(char const*, int, char const*, std::string const&, void const*) + 0x47 (0x7f92f905de17 in /home/bfortuner/libtorch/lib/libc10.so)
frame #1: caffe2::serialize::PyTorchStreamReader::valid(char const*) + 0x6b (0x7f92fbdbb4cb in /home/bfortuner/libtorch/lib/libtorch.so)
frame #2: caffe2::serialize::PyTorchStreamReader::~PyTorchStreamReader() + 0x1f (0x7f92fbdbb51f in /home/bfortuner/libtorch/lib/libtorch.so)