/usr/local/lib64/python3.6/site-packages/torch/include/torch/csrc/jit/python
NameSizeModeActions
init.h1510644editdlrm
module_python.h6850644editdlrm
pybind.h81020644editdlrm
pybind_utils.h397110644editdlrm
python_arg_flatten.h35770644editdlrm
python_custom_class.h4710644editdlrm
python_dict.h33450644editdlrm
python_ir.h17180644editdlrm
python_ivalue.h32490644editdlrm
python_list.h54380644editdlrm
python_sugared_value.h105450644editdlrm
python_tracer.h9110644editdlrm
python_tree_views.h1750644editdlrm
script_init.h1770644editdlrm
update_graph_executor_opt.h2240644editdlrm
Edit: /usr/local/lib64/python3.6/site-packages/torch/include/torch/csrc/jit/python/python_ir.h (1718B)
#pragma once #include #include namespace torch { namespace jit { void initPythonIRBindings(PyObject* module); // execute a Python function, used for Ops we can't optimize but that we want to // optimize around struct ConcretePythonOp : public PythonOp { static Symbol Kind; ConcretePythonOp(Graph* graph) : PythonOp(graph, ::c10::prim::PythonOp) {} ConcretePythonOp* init( THPObjectPtr&& pyobj, const std::string& cconv, pyobj_list&& scalar_args) { this->pyobj = std::move(pyobj); this->scalar_args = std::move(scalar_args); this->cconv = cconv; return this; } // The Python object which contains the implementation of this function. // This is either a class (non-legacy) or an object (legacy). See // TraceInterpreterState for execution semantics. THPObjectPtr pyobj; // The calling convention for the Python function. // 'c' -- constant argument // 'd' -- dynamic argument std::string cconv; // Scalar arguments to the Python function. Not necessarily passed to // the function in this order; see cconv for the correct order. std::vector scalar_args; std::string name() const override; void cloneFrom(Node* other_) override; Node* allocNewInstance(Graph* g) override { return new ConcretePythonOp(g); } // recover the autograd.Function instance, if this PythonOp's function // was originally SomeFunction.apply // used in ONNX for discovering symbolics c10::optional autogradFunction() const override; void writeScalars(std::ostream& out) const override; void lint_python() const override; }; } // namespace jit } // namespace torch