Our docs for now have a reference for the whole API: https://pytorch.org/cppdocs/api/library_root.html 194
I know we’re still missing an overall tutorial for the C++ frontend. I will write one soon. For now, I would try to look at the implementation and tests for the C++ frontend for examples. For example, check out the implementation of Adam, which uses NoGradGuard in the way I mentioned: https://github.com/goldsborough/pytorch/blob/master/torch/csrc/api/src/optim/adam.cpp#L52 48
Our integration tests are also good “end-to-end” examples: https://github.com/pytorch/pytorch/blob/master/test/cpp/api/integration.cpp 96
Let me know if you run into any other issues or would like more help with something.