| 1681 | } |
| 1682 | |
| 1683 | void TFE_Py_TapeWatch(PyObject* tape, PyObject* tensor) { |
| 1684 | if (*ThreadTapeIsStopped()) { |
| 1685 | return; |
| 1686 | } |
| 1687 | tensorflow::int64 tensor_id = FastTensorId(tensor); |
| 1688 | if (PyErr_Occurred()) { |
| 1689 | return; |
| 1690 | } |
| 1691 | reinterpret_cast<TFE_Py_Tape*>(tape)->tape->Watch(tensor_id); |
| 1692 | } |
| 1693 | |
| 1694 | bool ListContainsNone(PyObject* list) { |
| 1695 | if (list == Py_None) return true; |
nothing calls this directly
no test coverage detected