pytorch
0afe1950 - [pytorch] move type_derived_methods out of anonymous namespace (#32275)

Commit
4 years ago
[pytorch] move type_derived_methods out of anonymous namespace (#32275) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/32275 Currently TypeDerived (e.g. `CPUType::`) methods are declared and defined in anonymous namespace as they are only called from c10 dispatcher - except for STATIC_DISPATCH mode, where they can be directly called from Functions.h. We plan to generate c10 op registration into separate files for internal xplat/BUCK build, thus we need declare these methods in non-anonymous namespace. I feel it's easier to simply change it unconditionally, unless there are some side effect I'm not aware of - `TypeDefault::` methods are in non-anonymous namespace anyway. ghstack-source-id: 97214789 Test Plan: - CI Differential Revision: D19426692 Pulled By: ljk53 fbshipit-source-id: 44aebba15f5e88ef4acfb623844f61d735016959
Author
Parents
Loading