Skip to content

File tree

tensorflow/java/src/main/java/org/tensorflow/Graph.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ public Output<?>[] addGradients(String prefix, Output<?>[] y, Output<?>[] x, Out
226226
* Adds operations to compute the partial derivatives of sum of {@code y}s w.r.t {@code x}s,
227227
* i.e., {@code dy/dx_1, dy/dx_2...}
228228
* <p>
229-
* This is a simplified version of {@link #addGradients(String, Output[], Output[], Output[])
229+
* This is a simplified version of {@link #addGradients(String, Output[], Output[], Output[])}
230230
* where {@code y} is a single output, {@code dx} is null and {@code prefix} is null.
231231
*
232232
* @param y output of the function to derive

tensorflow/java/src/main/java/org/tensorflow/op/core/Zeros.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
* An operator creating a constant initialized with zeros of the shape given by `dims`.
2828
*
2929
* <p>For example, the following expression
30-
* <pre>{@code ops.zeros(ops.constant(new long[]{2, 2}), Float.class)</pre>
30+
* <pre>{@code ops.zeros(ops.constant(new long[]{2, 2}), Float.class)}</pre>
3131
* is the equivalent of
32-
* <pre>{@code ops.fill(ops.constant(new long[]{2, 2}), ops.constant(0.0f))</pre>
32+
* <pre>{@code ops.fill(ops.constant(new long[]{2, 2}), ops.constant(0.0f))}</pre>
3333
*
3434
* @param <T> constant type
3535
*/

0 commit comments

Comments
 (0)