Searched refs:PythonEventHandler (Results 1 – 1 of 1) sorted by relevance
71 class PythonEventHandler : public EventHandler { class73 explicit PythonEventHandler(std::function<void(const Event&)> handler) in PythonEventHandler() function in torch::monitor::__anona93c40650111::PythonEventHandler270 py::class_<PythonEventHandler, std::shared_ptr<PythonEventHandler>> in initMonitorBindings()279 auto handler = std::make_shared<PythonEventHandler>(std::move(f)); in initMonitorBindings()292 [](const std::shared_ptr<PythonEventHandler>& handler) { in initMonitorBindings()