k.osama:

torchscript format () (I can see that it is has the decorator @torch.jit.export) ? If yes, can you show please how to use


here is an example calling method in a TorchScript Moudule: https://codebrowser.bddppq.com/pytorch/pytorch/torch/csrc/jit/passes/quantization/insert_quant_dequant.cpp.html#978 18
if by C++ API you mean TorchScript then this should work. There is another C++ API that is authoring models in C++(https://pytorch.org/docs/stable/cpp_index.html#authoring-models-in-c 13) which I’m not familiar with.
for question 3: API of torch::jit::Module can be found in https://codebrowser.bddppq.com/pytorch/pytorch/torch/csrc/jit/api/module.h.html#torch::jit::Module 16