@hughperkins Really sorry for the late reply. I started with something and due to deadlines, I scrapped the idea and completely forgot about this post. I was trying to use PyTorch with C++ for inference. I used to do this with Lua Torch by invoking the Lua interpreter from C++ using Lua Torch’s C interface 8. I was trying to do the same with PyTorch. I will come back to this in a couple of months. I have to do some reading on all the available mechanisms of doing this. Any suggestions are welcome.