Home
last modified time | relevance | path

Searched refs:ThreadLocalPythonObjects (Results 1 – 6 of 6) sorted by relevance

/aosp_15_r20/external/pytorch/aten/src/ATen/
H A DThreadLocalPythonObjects.cpp9 static thread_local ThreadLocalPythonObjects py_objects;
12 void ThreadLocalPythonObjects::set(const std::string& key, std::shared_ptr<SafePyObject> value) { in set()
16 const std::shared_ptr<SafePyObject>& ThreadLocalPythonObjects::get(const std::string& key) { in get()
21 bool ThreadLocalPythonObjects::contains(const std::string& key) { in contains()
25 void ThreadLocalPythonObjects::set_state(ThreadLocalPythonObjects state) { in set_state()
29 const ThreadLocalPythonObjects& ThreadLocalPythonObjects::get_state() { in get_state()
H A DThreadLocalPythonObjects.h9 struct TORCH_API ThreadLocalPythonObjects { struct
14 static const ThreadLocalPythonObjects& get_state();
15 static void set_state(ThreadLocalPythonObjects state);
H A DThreadLocalState.cpp22 saved_objects_(at::impl::ThreadLocalPythonObjects::get_state()) { in ThreadLocalState()
63 at::impl::ThreadLocalPythonObjects::set_state(state.saved_objects_); in setThreadLocalState()
H A DThreadLocalState.h79 at::impl::ThreadLocalPythonObjects saved_objects_;
/aosp_15_r20/external/pytorch/torch/csrc/
H A DModule.cpp2088 at::impl::ThreadLocalPythonObjects::get_state().set( in initModule()
2095 at::impl::ThreadLocalPythonObjects::get_state().get(key); in initModule()
2101 return at::impl::ThreadLocalPythonObjects::get_state().contains(key); in initModule()
/aosp_15_r20/external/pytorch/
H A Dbuild_variables.bzl1021 "aten/src/ATen/ThreadLocalPythonObjects.cpp",