Searched refs:variable_watcher (Results 1 – 5 of 5) sorted by relevance
176 with tape.VariableWatcher() as variable_watcher:180 self.assertAllEqual(variable_watcher.watched_variables(), (var1, var2))185 with tape.VariableWatcher() as variable_watcher:189 self.assertAllEqual(variable_watcher.watched_variables(), (var1,))205 with tape.VariableWatcher() as variable_watcher:211 self.assertAllEqual(variable_watcher.watched_variables(), (var1, var2))
343 void TFE_Py_VariableWatcherRemove(PyObject* variable_watcher);350 PyObject* TFE_Py_VariableWatcherWatchedVariables(PyObject* variable_watcher);
1656 VariableWatcher* variable_watcher; member1659 static void TFE_Py_VariableWatcher_Delete(PyObject* variable_watcher) { in TFE_Py_VariableWatcher_Delete() argument1660 delete reinterpret_cast<TFE_Py_VariableWatcher*>(variable_watcher) in TFE_Py_VariableWatcher_Delete()1661 ->variable_watcher; in TFE_Py_VariableWatcher_Delete()1662 Py_TYPE(variable_watcher)->tp_free(variable_watcher); in TFE_Py_VariableWatcher_Delete()2220 TFE_Py_VariableWatcher* variable_watcher = local2222 variable_watcher->variable_watcher = new VariableWatcher();2223 Py_INCREF(variable_watcher);2224 GetVariableWatcherSet()->insert(variable_watcher);2225 return reinterpret_cast<PyObject*>(variable_watcher);[all …]
329 with tape_lib.VariableWatcher() as variable_watcher:352 v.ref() for v in variable_watcher.watched_variables()437 with tape_lib.VariableWatcher() as variable_watcher:445 for v in set(v.ref() for v in variable_watcher.watched_variables())
961 m.def("TFE_Py_VariableWatcherRemove", [](const py::handle& variable_watcher) { in PYBIND11_MODULE() argument962 TFE_Py_VariableWatcherRemove(variable_watcher.ptr()); in PYBIND11_MODULE()969 [](const py::handle& variable_watcher) { in PYBIND11_MODULE() argument971 TFE_Py_VariableWatcherWatchedVariables(variable_watcher.ptr())); in PYBIND11_MODULE()