Seems like both tensor and vector of tensors are supported and can be easily serialized using torch::save and torch::load respectively.


how it works!
torch::save(tensor, "mytensor.pt");
torch::save(tensor_vec "myvector.pt")

for loading :
torch::load(tensor_vec, "myvector.pt")


However, I could really appreciate if anyone could give me a hint on how to add support for more types such as the one I mentioned above.