pytorch
d4c37b31 - Mark redispatch functions with TORCH_API (#54966)

Commit
3 years ago
Mark redispatch functions with TORCH_API (#54966) Summary: So they can be called from out-of-tree extensions Otherwise I get linking errors like: ``` ImportError: /anaconda/envs/mytorch/lib/python3.8/site-packages/torchy-0.1-py3.8-linux-x86_64.egg/_TORCHY.cpython-38-x86_64-linux-gnu.so: undefined symbol: _ZN2at10redispatch3addEN3c1014DispatchKeySetERKNS_6TensorES5_RKNS1_6ScalarE ``` cc ezyang bdhirsh Pull Request resolved: https://github.com/pytorch/pytorch/pull/54966 Reviewed By: H-Huang Differential Revision: D27439712 Pulled By: ezyang fbshipit-source-id: 4c0b45e87e708c57283758da49c54a767ab7ecbc
Author
Parents
Loading