| 3231 | } |
| 3232 | |
| 3233 | PyObject* TFE_Py_RecordGradient(PyObject* op_name, PyObject* inputs, |
| 3234 | PyObject* attrs, PyObject* results, |
| 3235 | PyObject* name) { |
| 3236 | if (*ThreadTapeIsStopped() || !HasTape()) { |
| 3237 | Py_RETURN_NONE; |
| 3238 | } |
| 3239 | |
| 3240 | return RecordGradient(op_name, inputs, attrs, results, name); |
| 3241 | } |
| 3242 | |
| 3243 | namespace { |
| 3244 | const char kTensor[] = "T"; |
nothing calls this directly
no test coverage detected