@@ -47,11 +47,11 @@ public final class Tensor<T> implements AutoCloseable {
4747 /**
4848 * Creates a Tensor from a Java object.
4949 *
50- * <p>A {@code Tensor} is a multi-dimensional array of elements of a limited set of types ({@link
51- * types}), so not all Java objects can be converted to a {@code Tensor}. In particular, the
52- * argument {@code obj} must be either a primitive (float, double, int, long, boolean, byte) or a
53- * multi-dimensional array of one of those primitives. The argument {@code type} specifies how to
54- * interpret the first argument as a TensorFlow type. For example:
50+ * <p>A {@code Tensor} is a multi-dimensional array of elements of a limited set of types. Not all
51+ * Java objects can be converted to a {@code Tensor}. In particular, the argument {@code obj} must
52+ * be either a primitive (float, double, int, long, boolean, byte) or a multi-dimensional array of
53+ * one of those primitives. The argument {@code type} specifies how to interpret the first
54+ * argument as a TensorFlow type. For example:
5555 *
5656 * <pre>{@code
5757 * // Valid: A 64-bit integer scalar.
@@ -94,9 +94,9 @@ public final class Tensor<T> implements AutoCloseable {
9494 * Tensor<String> m = Tensor.create(matrix, String.class);
9595 * }</pre>
9696 *
97- * @param obj The object to convert to a Tensor<T>. Note that whether it is compatible with the
98- * type T is not checked by the type system. For type-safe creation of tensors, use {@link
99- * Tensors}.
97+ * @param obj The object to convert to a {@code Tensor<T>} . Note that whether it is compatible
98+ * with the type T is not checked by the type system. For type-safe creation of tensors, use
99+ * {@link Tensors}.
100100 * @param type The class object representing the type T.
101101 * @throws IllegalArgumentException if {@code obj} is not compatible with the TensorFlow type
102102 * system.
@@ -229,7 +229,8 @@ public static Tensor<Long> create(long[] shape, LongBuffer data) {
229229 *
230230 * <p>Creates a Tensor with the provided shape of any type where the tensor's data has been
231231 * encoded into {@code data} as per the specification of the TensorFlow <a
232- * href="https://www.tensorflow.org/code/tensorflow/c/c_api.h">C API</a>.
232+ * href="https://www.tensorflow.org/code/tensorflow/c/c_api.h">C
233+ * API</a>.
233234 *
234235 * @param <T> the tensor element type
235236 * @param type the tensor element type, represented as a class object.
@@ -249,7 +250,8 @@ public static <T> Tensor<T> create(Class<T> type, long[] shape, ByteBuffer data)
249250 *
250251 * <p>Creates a Tensor with the provided shape of any type where the tensor's data has been
251252 * encoded into {@code data} as per the specification of the TensorFlow <a
252- * href="https://www.tensorflow.org/code/tensorflow/c/c_api.h">C API</a>.
253+ * href="https://www.tensorflow.org/code/tensorflow/c/c_api.h">C
254+ * API</a>.
253255 *
254256 * @param <T> The tensor element type
255257 * @param type the tensor element type, specified as a DataType. This must agree with T.
0 commit comments