1 #include <ATen/core/jit_type.h> 2 #include <torch/csrc/jit/script/module.h> 8 Method* ClassType::getMethod(
const std::string& name)
const {
9 return module_->find_method(name);
12 std::vector<Method*> ClassType::methods()
const {
13 const auto& methods = module_->get_methods();
14 std::vector<Method*> ret;
15 for (
const auto& pr : methods.items()) {
16 ret.push_back(pr.value().get());
To register your own kernel for an operator, do in one (!) cpp file: C10_REGISTER_KERNEL(OperatorHand...