diff options
author | Igor Ganichev <iga@google.com> | 2017-09-19 23:32:47 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-09-19 23:35:55 -0700 |
commit | 5f453c9959e12c7922500c9ae188a7afe41036e0 (patch) | |
tree | d9a56f4bb547dba29beb2ab132de5715836fb28e /tensorflow/c/c_api.h | |
parent | 0de5f7cecb785b03d652479ac4f359b284e8c3a5 (diff) |
Relax restriction on ref types in body
PiperOrigin-RevId: 169356209
Diffstat (limited to 'tensorflow/c/c_api.h')
-rw-r--r-- | tensorflow/c/c_api.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tensorflow/c/c_api.h b/tensorflow/c/c_api.h index 719374f2a4..d682793007 100644 --- a/tensorflow/c/c_api.h +++ b/tensorflow/c/c_api.h @@ -1094,9 +1094,10 @@ TF_CAPI_EXPORT void TF_AddGradients(TF_Graph* g, TF_Output* y, int ny, // Callers must also satisfy the following constraints: // - `inputs` cannot refer to TF_Outputs within a control flow context. For // example, one cannot use the output of "switch" node as input. -// - No TF_Output of a function (inside any of `inputs`, `outputs`, `fn_body`) -// is allowed to have a reference type. Reference types are not exposed -// through C API and are being deprecated. +// - `inputs` and `outputs` cannot have reference types. Reference types are +// not exposed through C API and are being replaced with Resources. We support +// reference types inside function's body to support legacy code. Do not +// use them in new code. // - Every node in the function's body must have all of its inputs (including // control inputs). In other words, for every node in the body, each input // must be either listed in `inputs` or must come from another node in |