pytorch
de6beca8 - [torchgen] Let native function declaration generation logic take a callable (#90590)

Commit
2 years ago
[torchgen] Let native function declaration generation logic take a callable (#90590) Retry of #89594. Accidentally closed. This PR allows `get_native_function_declarations` API to take a function as argument. This function should take `NativeFunction` as input and emit code for native function declaration. By default it is `dest.compute_native_function_declaration`. Differential Revision: [D41501838](https://our.internmc.facebook.com/intern/diff/D41501838/) Pull Request resolved: https://github.com/pytorch/pytorch/pull/90590 Approved by: https://github.com/iseeyuan
Author
Committer
Parents
Loading