Skip to content

Commit 6d12372

Browse files
committed
Adding requirements.txt for doc generation and a few small Javadoc fixes.
1 parent 73bf620 commit 6d12372

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

docs/tools/requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
GitPython
2+
requests
3+
tensorflow-docs

tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/internal/buffer/ByteSequenceTensorBuffer.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,9 @@
4040
* <p>The values are stored as an array of {@link TF_TString}, internally wrapped with {@code
4141
* tensorflow::tstring}, which is essentially a portable version of {@code std::string}.
4242
*
43-
* <p>The data of the buffer must be initialized only once, by calling {@link #init(NdArray,
44-
* Function)}, and the buffer must have been allocated with enough space (use {@link
45-
* #computeSize(NdArray, Function)} priory to know exactly how many bytes are required to store the
46-
* data).
43+
* <p>The data of the buffer must be initialized only once, by calling {@link #init}, and the buffer
44+
* must have been allocated with enough space (use {@link #computeSize} priory to know exactly how
45+
* many bytes are required to store the data).
4746
*
4847
* <p>After its data has been initialized, the buffer is read-only as it is not possible to change
4948
* safely a value without reinitializing the whole data.
@@ -66,7 +65,7 @@ public static <T> long computeSize(ByteSequenceProvider<?> byteSequenceProvider)
6665
*
6766
* <p>While it is not enforced programmatically, it is mandatory that this method is called only
6867
* once after the creation of the buffer. The buffer must have been allocated according to the
69-
* same set of data, calling {@link #computeSize(NdArray, Function)} priory to make sure there is
68+
* same set of data, calling {@link #computeSize} priory to make sure there is
7069
* enough space to store it.
7170
*
7271
* @param byteSequenceProvider produces sequences of bytes to use as the tensor data

tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/internal/types/TUint16Mapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import org.tensorflow.types.TUint16;
3030

3131
/**
32-
* Maps memory of {@link org.tensorflow.proto.DataType#DT_Uint16} tensors to a n-dimensional data
32+
* Maps memory of {@link org.tensorflow.proto.DataType#DT_UINT16} tensors to a n-dimensional data
3333
* space.
3434
*/
3535
public final class TUint16Mapper extends TensorMapper<TUint16> {

tensorflow-framework/src/main/java/org/tensorflow/framework/losses/impl/LossesHelper.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,6 @@ private static <T extends TNumber> Operand<T> reduceWeightedLoss(
299299
*
300300
* @param tf the TensorFlow Ops
301301
* @param losses <code>Operand</code> whose elements contain individual loss measurements.
302-
* @param numElements The number of measurable elements in <code>losses</code>.
303302
* @param <T> the data type of the losses
304303
* @return A scalar representing the mean of <code>losses</code>. If <code>numElements</code> is
305304
* zero, then zero is returned.

0 commit comments

Comments
 (0)