Hello,
Out of curiosity, and as far as I know no one did this before, I tried using Libtorch directly on Jupiter using Cling (https://github.com/QuantScientist/DarkTorch/blob/master/cpp_pytorch.ipynb 11).
I was partially successful and was able to load a CNN model, however this line:
auto input_tensor = torch::from_blob(m.data, {1, 224, 224, kCHANNELS});

Raises the following exception which to my best understanding is unrelated to Libtorch:
IncrementalExecutor::executeFunction: symbol '__emutls_v._ZSt11__once_call' unresolved while linking [cling interface function]!

Any help would be appreciated.