I’m checking the C++ docs 7 first for a matching function (for permute I knew it was there) and if I cannot find it, I’m usually checking the C++ code (the libtorch tests are a good place to see examples) for the method.