mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 21:49:24 +08:00
Move functional collectives to the right namespace (#97793)
This moves them from `torch._C._nn` to `torch._C._dist` Pull Request resolved: https://github.com/pytorch/pytorch/pull/97793 Approved by: https://github.com/albanD
This commit is contained in:
committed by
PyTorch MergeBot
parent
45acfc8574
commit
184bfbc3d7
@ -41,6 +41,7 @@
|
||||
#include <torch/csrc/TypeInfo.h>
|
||||
#include <torch/csrc/api/include/torch/python/init.h>
|
||||
#include <torch/csrc/autograd/python_cpp_function.h>
|
||||
#include <torch/csrc/autograd/python_dist_functions.h>
|
||||
#include <torch/csrc/autograd/python_enum_tag.h>
|
||||
#include <torch/csrc/autograd/python_fft_functions.h>
|
||||
#include <torch/csrc/autograd/python_function.h>
|
||||
@ -1328,6 +1329,7 @@ PyObject* initModule() {
|
||||
torch::autograd::initNestedFunctions(module);
|
||||
torch::autograd::initSparseFunctions(module);
|
||||
torch::autograd::initSpecialFunctions(module);
|
||||
torch::autograd::initDistFunctions(module);
|
||||
torch::autograd::init_legacy_variable(module);
|
||||
torch::profiler::initPythonBindings(module);
|
||||
torch::python::init_bindings(module);
|
||||
|
Reference in New Issue
Block a user