Improve discoverability of meta function registration in documentation #126337
Labels
module: docs
Related to our documentation, both in docs/ and docblocks
module: dynamic shapes
module: pt2-dispatcher
PT2 dispatcher-related issues (e.g., aotdispatch, functionalization, faketensor, custom-op,
oncall: pt2
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
馃摎 The doc issue
While working with
torch._foreach_pow_
in #125440, I encountered an error in the CI:After reading the Google doc, I still don't know how to fix it because I'm not familiar with the PyTorch C++ backend. Finally, the reviewer told me that I need to add an overload in torch/_meta_registrations.py. I think it is a little difficult for python contributors to find this solely. (I searched for _meta_registrations in vscode and found pytorch/docs/source/torch.compiler_dynamic_shapes.rst, which led me to The dynamic shapes manual. The document instructed me to register a meta function, but there is no example provided, I had to figure out what other functions in torch/_meta_registrations.py do before registering the one I need.)
Suggest a potential alternative/fix
Include a clear reference or FQA about using the python functions in pt2.
cc @svekars @brycebortree @ezyang @msaroufim @bdhirsh @anijain2305 @chauhang @zou3519
The text was updated successfully, but these errors were encountered: