From c01cfe7ced91dabc19b2392696cf0598a5df70f9 Mon Sep 17 00:00:00 2001 From: "karl@kubx.ca" Date: Fri, 27 Jul 2018 18:04:43 -0400 Subject: 2nd review: Cover more prefix conflict cases --- tensorflow/java/src/main/java/org/tensorflow/Graph.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tensorflow/java') 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. *

- * 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} -- cgit v1.2.3