diff options
Diffstat (limited to 'tensorflow/python/eager/pywrap_tfe.h')
-rw-r--r-- | tensorflow/python/eager/pywrap_tfe.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/tensorflow/python/eager/pywrap_tfe.h b/tensorflow/python/eager/pywrap_tfe.h index 6705483f3b..1d03df2933 100644 --- a/tensorflow/python/eager/pywrap_tfe.h +++ b/tensorflow/python/eager/pywrap_tfe.h @@ -81,7 +81,7 @@ bool EagerTensor_CheckExact(const PyObject* o); PyObject* EagerTensorFromHandle(TFE_TensorHandle* handle); // Extracts the handle inside EagerTensor object `o`. Returns nullptr on error. -TFE_TensorHandle* EagerTensor_Handle(const PyObject* o); +TFE_TensorHandle* EagerTensorHandle(const PyObject* o); // Creates the `EagerTensor` class by subclassing `base_class` and returns the // newly created type, or nullptr on error. @@ -103,16 +103,7 @@ void TFE_Py_TapeRecordOperation(PyObject* tape, PyObject* op_type, PyObject* output_tensors, PyObject* input_tensor_ids, PyObject* backward_function); - -// Computes a gradient based on information recorded on the tape.`tape` must -// have been produced by TFE_Py_NewTape. `vspace` must be a -// imperative_grad.py:VSpace named tuple. `target` and `sources` must be python -// lists of Tensor objects. `output_gradients` is either None or a python list -// of either Tensor or None, and if not None should have the same length as -// target. -PyObject* TFE_Py_TapeGradient(PyObject* tape, PyObject* vspace, - PyObject* target, PyObject* sources, - PyObject* output_gradients, TF_Status* status); +PyObject* TFE_Py_TapeExport(PyObject* tape); // Returns an EagerTensor of dimension [len(`tensor_list`)] containing // the `slice_dim`'th dimension of each tensor in `tensor_list`. In other words, |