Files
pytorch/torch/csrc/jit/python/python_custom_class.h
Nikita Shulga ad8aef0f98 [BE] [3/N] Use nested namespaces (#110314)
Mostly in torch/csrc/jit/runtime and in `ATen/cuda/`

Pull Request resolved: https://github.com/pytorch/pytorch/pull/110314
Approved by: https://github.com/seemethere
2023-09-30 02:23:48 +00:00

21 lines
446 B
C++

#pragma once
#include <torch/csrc/jit/python/pybind_utils.h>
#include <torch/csrc/utils/pybind.h>
#include <torch/custom_class.h>
namespace torch::jit {
void initPythonCustomClassBindings(PyObject* module);
struct ScriptClass {
ScriptClass(c10::StrongTypePtr class_type)
: class_type_(std::move(class_type)) {}
py::object __call__(py::args args, py::kwargs kwargs);
c10::StrongTypePtr class_type_;
};
} // namespace torch::jit