Home
last modified time | relevance | path

Searched refs:PythonFunctionGuard (Results 1 – 2 of 2) sorted by relevance

/aosp_15_r20/external/pytorch/torch/csrc/jit/python/
H A Dpybind_utils.h80 struct VISIBILITY_HIDDEN PythonFunctionGuard { struct
81 explicit PythonFunctionGuard(py::function func) : func_(std::move(func)) {} in PythonFunctionGuard() argument
83 ~PythonFunctionGuard() { in ~PythonFunctionGuard() argument
154 auto pf = std::make_shared<PythonFunctionGuard>(std::move(cb)); in then()
190 auto pf = std::make_shared<PythonFunctionGuard>(std::move(cb)); in add_done_callback()
194 const std::shared_ptr<PythonFunctionGuard>& pf) { in add_done_callback()
266 pyfg_ = std::make_shared<torch::jit::PythonFunctionGuard>(std::move(pf)); in PythonAwaitWrapper()
305 std::shared_ptr<torch::jit::PythonFunctionGuard> pyfg_;
H A Dinit.cpp2067 std::make_shared<torch::jit::PythonFunctionGuard>( in initJITBindings()