Home
last modified time | relevance | path

Searched refs:PyCall (Results 1 – 12 of 12) sorted by relevance

/external/pytorch/torch/csrc/autograd/
Dprofiler_python.cpp37 enum CallType { PyCall = 0, PyModuleCall, PyCCall, PyOptimizerCall }; enumerator
116 CallType::PyCall == 0,
195 struct Config<CallType::PyCall> {
199 static constexpr EventType event_type = EventType::PyCall;
221 static constexpr EventType event_type = EventType::PyCall;
265 Config<CallType::PyCall>::key_t caller_;
271 using PyCallKey = Config<CallType::PyCall>::key_t;
286 auto caller = load<CallType::PyCall>(callsite.caller_); in load()
321 value_cache->store<CallType::PyCall>(*cache.location_, no_ephemeral_t()); in set_class()
363 void ValueCache::store<CallType::PyCall>(const PyCallKey& key, no_ephemeral_t) { in store()
[all …]
Dprofiler_kineto.cpp220 void operator()(const ExtraFields<EventType::PyCall>& py_call) { in operator ()()
/external/tensorflow/tensorflow/python/lib/core/
Dpy_func.cc63 struct PyCall { struct
88 Status MakeArgTuple(const PyCall* call, TFE_Context* ctx, PyObject** tuple) { in MakeArgTuple()
186 Status DoCallPyFunc(PyCall* call, bool* out_log_on_error) { in DoCallPyFunc()
327 PyCall call; in Compute()
/external/pytorch/torch/csrc/profiler/python/
Dinit.cpp421 .value("PyCall", EventType::PyCall) in initPythonBindings()
524 py::class_<ExtraFields<EventType::PyCall>>(m, "_ExtraFields_PyCall") in initPythonBindings()
525 .def_readonly("callsite", &ExtraFields<EventType::PyCall>::callsite_) in initPythonBindings()
526 .def_readonly("caller", &ExtraFields<EventType::PyCall>::caller_) in initPythonBindings()
527 .def_readonly("module", &ExtraFields<EventType::PyCall>::module_) in initPythonBindings()
528 .def_readonly("optimizer", &ExtraFields<EventType::PyCall>::optimizer_); in initPythonBindings()
531 .def_readonly("caller", &ExtraFields<EventType::PyCall>::caller_); in initPythonBindings()
/external/pytorch/torch/_C/
D_profiler.pyi51 PyCall = ...
101 | tuple[Literal[_EventType.PyCall], _ExtraFields_PyCall]
/external/pytorch/test/profiler/
Dtest_memory_profiler.py197 self.gradient_detected(prof, _EventType.PyCall, p.grad, p),
211 self.assertGradientDetected(name, prof, _EventType.PyCall, p.grad, p)
237 self.assertGradientDetected("w0", prof, _EventType.PyCall, w0.grad, w0)
238 self.assertGradientDetected("w1", prof, _EventType.PyCall, w1.grad, w1)
256 self.gradient_detected(prof, _EventType.PyCall, w0.grad, w0),
261 self.gradient_detected(prof, _EventType.PyCall, w1.grad, w1),
289 "weight", prof, _EventType.PyCall, model[0].weight.grad, model[0].weight
/external/pytorch/torch/csrc/profiler/
Dcollection.h35 PyCall, enumerator
306 struct ExtraFields<EventType::PyCall> : public PyExtraFieldsBase {
411 ExtraFields<EventType::PyCall>,
Ddata_flow.cpp81 [&](ExtraFields<EventType::PyCall>& py_call) { in calculateUniqueTensorIDs()
Dcollection.cpp541 std::string toString(const ExtraFields<EventType::PyCall>& e) { in toString()
594 ATTRIBUTE(PyCall, toString(e)), in name()
606 ATTRIBUTE(PyCall, libkineto::ActivityType::PYTHON_FUNCTION), in kinetoType()
/external/pytorch/torch/profiler/
D_memory_profiler.py182 elif node.typed[0] == _EventType.PyCall:
348 elif node.typed[0] == _EventType.PyCall:
968 if event.typed[0] == _EventType.PyCall and event.typed[1].optimizer:
D_pattern_matcher.py587 if event.tag == _EventType.PyCall or event.tag == _EventType.PyCCall:
/external/pytorch/torch/cuda/
D_memory_viz.py427 if parent.tag in (_EventType.PyCall, _EventType.PyCCall):