aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/java
diff options
context:
space:
mode:
authorGravatar karl@kubx.ca <karl@kubx.ca>2018-07-27 18:04:43 -0400
committerGravatar karl@kubx.ca <karl@kubx.ca>2018-07-27 18:04:43 -0400
commitc01cfe7ced91dabc19b2392696cf0598a5df70f9 (patch)
treef2e748e6b1c216f4c97054025257d206ba980fcf /tensorflow/java
parenta278365e8848f5fcbccb42f95a3c523367c1602f (diff)
2nd review: Cover more prefix conflict cases
Diffstat (limited to 'tensorflow/java')
-rw-r--r--tensorflow/java/src/main/java/org/tensorflow/Graph.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/tensorflow/java/src/main/java/org/tensorflow/Graph.java b/tensorflow/java/src/main/java/org/tensorflow/Graph.java
index 32853c1367..abca956b97 100644
--- a/tensorflow/java/src/main/java/org/tensorflow/Graph.java
+++ b/tensorflow/java/src/main/java/org/tensorflow/Graph.java
@@ -156,11 +156,10 @@ public final class Graph implements AutoCloseable {
* {@code prefix} is used as the name prefix applied to all nodes added to the graph to compute gradients. It must
* be unique within the provided graph or the operation will fail.
* <p>
- * If {@code prefix} is null, then the nodes will be added to under the default prefix, which is "gradients" for the
- * first invocation, then "gradients_1", "gradients_2", etc. for any subsequent calls to the same graph.
+ * If {@code prefix} is null, then one will be chosen automatically.
*
* @param prefix unique string prefix applied before the names of nodes added to the graph to compute gradients.
- * If null, defaults to "gradients".
+ * If null, a default one will be chosen.
* @param y output of the function to derive
* @param x inputs of the function for which partial derivatives are computed
* @param dx if not null, the partial derivatives of some loss function {@code L} w.r.t. {@code y}