Searched refs:PyObject_FastGetAttrString (Results 1 – 5 of 5) sorted by relevance
/aosp_15_r20/external/pytorch/torch/csrc/utils/ |
H A D | python_arg_parser.cpp | 160 py::object torch_api = PyObject_FastGetAttrString( in handle_torch_function_getter() 176 py::object torch_api = PyObject_FastGetAttrString( in handle_torch_function_setter() 234 PyObject_FastGetAttrString(torch_api, (char*)func_name.c_str()); in handle_torch_function() 292 PyObject_FastGetAttrString(arg, torch_function_name_str); in dispatch_on_subclass() 308 PyObject_FastGetAttrString(torch_function.ptr(), "__self__") in dispatch_on_subclass() 385 PyObject_FastGetAttrString(mode_obj.ptr(), torch_function_name_str); in dispatch_on_mode() 393 PyObject_FastGetAttrString(torch_function.ptr(), "__self__").is(mode_obj), in dispatch_on_mode() 601 py::object torch_api_function = PyObject_FastGetAttrString( in handle_torch_function() 650 PyObject_FastGetAttrString(THPVariableClass, (char*)func_name); in handle_torch_function_indexing()
|
H A D | python_strings.h | 103 inline py::object PyObject_FastGetAttrString(PyObject* obj, const char* name) { in PyObject_FastGetAttrString() function
|
H A D | disable_torch_function.cpp | 310 auto attr = PyObject_FastGetAttrString(obj, "__torch_function__"); in has_torch_function_attr()
|
/aosp_15_r20/external/pytorch/torch/csrc/autograd/ |
H A D | init.cpp | 1140 PyObject_FastGetAttrString(arg, "_mode_key"); in push_on_torch_dispatch_stack() 1206 py::object maybe_mode_key_obj = PyObject_FastGetAttrString(mode, "_mode_key"); in set_dispatch_mode()
|
H A D | python_variable.cpp | 224 py::object attr = PyObject_FastGetAttrString(obj, "__torch_dispatch__"); in check_has_torch_dispatch() 790 py::object attr = PyObject_FastGetAttrString(cls, "__torch_dispatch__"); in THPVariable_make_wrapper_subclass()
|