Home
last modified time | relevance | path

Searched refs:getPyInterpreter (Results 1 – 17 of 17) sorted by relevance

/aosp_15_r20/external/pytorch/torch/csrc/autograd/
H A Dpython_saved_variable_hooks.cpp65 c10::SafePyObject(pack_hook.release().ptr(), getPyInterpreter()), in push_hooks()
66 c10::SafePyObject(unpack_hook.release().ptr(), getPyInterpreter())); in push_hooks()
72 pack_hook.ptr(getPyInterpreter()) != nullptr && in pop_hooks()
73 unpack_hook.ptr(getPyInterpreter()) != nullptr); in pop_hooks()
H A Dinit.cpp74 c10::impl::PythonDispatcherTLS::set_state(getPyInterpreter()); in EnablePythonDispatcher()
1086 std::make_shared<c10::SafePyObject>(arg, getPyInterpreter())); in push_on_torch_function_stack()
1097 auto* r = mode->ptr(getPyInterpreter()); in pop_torch_function_stack()
1115 auto* r = mode->ptr(getPyInterpreter()); in get_function_stack_at()
1145 arg, getPyInterpreter()), in push_on_torch_dispatch_stack()
1150 arg, getPyInterpreter())); in push_on_torch_dispatch_stack()
1174 r = mode->ptr(getPyInterpreter()); in pop_torch_dispatch_stack()
1177 r = mode->ptr(getPyInterpreter()); in pop_torch_dispatch_stack()
1196 auto* r = mode->ptr(getPyInterpreter()); in get_dispatch_stack_at()
1215 mode, getPyInterpreter()), in set_dispatch_mode()
[all …]
H A Dpython_hook.cpp182 c10::SafePyObject(value, getPyInterpreter()), in compiled_args()
192 args.add_pre_hook(c10::SafePyObject(value, getPyInterpreter())); in compiled_args()
201 args.add_post_hook(c10::SafePyObject(value, getPyInterpreter())); in compiled_args()
236 c10::SafePyObject hook_obj(value, getPyInterpreter()); in compiled_args()
H A Dpython_variable.cpp254 c10::impl::GPUTrace::set_trace(getPyInterpreter()); in activateGPUTrace()
272 getPyInterpreter(), /*ignore_hermetic_tls=*/false); in THPVariable_Wrap()
349 getPyInterpreter(), /*ignore_hermetic_tls=*/false) != in isResurrectable()
376 getPyInterpreter(), in THPVariable_tryResurrect()
457 getPyInterpreter(), /*ignore_hermetic_tls=*/false) == in THPVariable_clear()
2019 getPyInterpreter(), /*ignore_hermetic_tls=*/false); in THPVariable_NewWithVar()
2102 getPyInterpreter(), obj, status); in THPVariable_NewWithVar()
H A Dpython_function.cpp344 args.add_backward(c10::SafePyObject(obj, getPyInterpreter())); in compiled_args()
351 c10::SafePyObject(bw_state, getPyInterpreter())); in compiled_args()
/aosp_15_r20/external/pytorch/torch/csrc/
H A DStorage.cpp46 getPyInterpreter(), /*ignore_hermetic_tls=*/false); in THPStorage_NewWithStorage()
82 getPyInterpreter(), obj, status); in THPStorage_NewWithStorage()
106 !pyobj_slot->check_interpreter(getPyInterpreter())) { in THPStorage_Wrap()
113 getPyInterpreter(), /*ignore_hermetic_tls=*/false); in THPStorage_Wrap()
156 getPyInterpreter(), /*ignore_hermetic_tls=*/true) != in THPStorage_isPreservable()
175 getPyInterpreter(), in THPStorage_tryPreserve()
H A DPyInterpreter.cpp583 getPyInterpreter(), /*ignore_hermetic_tls=*/false); in set_tensor_attr_with_capsule()
611 tensor->pyobj_slot()->check_pyobj(getPyInterpreter()); in get_set_cached_attr()
948 ss << getPyInterpreter(); in name()
957 return op.getPythonOp(getPyInterpreter(), [&]() -> PyObject* { in getTorchApiFunction()
982 c10::impl::PyInterpreter* getPyInterpreter() { in getPyInterpreter() function
H A DPyInterpreter.h12 TORCH_PYTHON_API c10::impl::PyInterpreter* getPyInterpreter();
H A DModule.cpp393 getPyInterpreter(), /*ignore_hermetic_tls=*/false); in THPModule_swap_tensor_impl()
396 getPyInterpreter(), /*ignore_hermetic_tls=*/false); in THPModule_swap_tensor_impl()
407 getPyInterpreter(), a_, c10::impl::PyInterpreterStatus::TAGGED_BY_US); in THPModule_swap_tensor_impl()
409 getPyInterpreter(), b_, c10::impl::PyInterpreterStatus::TAGGED_BY_US); in THPModule_swap_tensor_impl()
2090 std::make_shared<c10::SafePyObject>(arg.ptr(), getPyInterpreter())); in initModule()
2096 auto obj = safe_pyobject->ptr(getPyInterpreter()); in initModule()
H A DDevice.cpp185 mode.release().ptr(), getPyInterpreter())); in THPDevice_enter()
/aosp_15_r20/external/pytorch/torch/csrc/utils/
H A Dpython_dispatch.cpp120 : func_(func.release().ptr(), getPyInterpreter()), in PythonKernelHolder()
195 py::reinterpret_borrow<py::object>(func_.ptr(getPyInterpreter())); in operator ()()
441 func.release().ptr(), getPyInterpreter())); in initDispatchBindings()
899 std::make_unique<c10::SafePyObject>(obj, getPyInterpreter()); in initDispatchBindings()
1004 auto* pyobj = func->ptr(getPyInterpreter()); in python_op_registration_trampoline_impl()
H A Dpython_symnode.h37 pyobj.release().ptr(), getPyInterpreter()); in PythonSymNodeImpl()
307 return py::handle(pyobj_->ptr(getPyInterpreter())); in getPyObj()
H A Dpython_arg_parser.cpp378 tf_g->get_cur_mode()->ptr(getPyInterpreter())); in dispatch_on_mode()
382 td_g->get_cur_mode()->ptr(getPyInterpreter())); in dispatch_on_mode()
/aosp_15_r20/external/pytorch/functorch/csrc/dim/
H A Dpython_variable_simple.h49 TORCH_PYTHON_API c10::impl::PyInterpreter* getPyInterpreter();
H A Ddim.cpp1116 …t->unsafeGetTensorImpl()->pyobj_slot()->check_pyobj(getPyInterpreter(), /*ignore_hermetic_tls=*/fa… in handle_from_tensor()
/aosp_15_r20/external/pytorch/torch/csrc/inductor/aoti_eager/
H A Dkernel_holder.cpp175 pyinterpreter_(getPyInterpreter()) { in AOTIPythonKernelHolder()
/aosp_15_r20/external/pytorch/torch/csrc/dynamo/
H A Dguards.cpp2553 PyTypeObject* mode_type = Py_TYPE(mode->ptr(getPyInterpreter())); in check_nopybind()