1 #pragma once 2 3 // Instantiates torch._C._LegacyVariableBase, which defines the Python 4 // constructor (__new__) for torch.autograd.Variable. 5 6 #include <torch/csrc/python_headers.h> 7 8 namespace torch::autograd { 9 10 void init_legacy_variable(PyObject* module); 11 12 } 13