You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/internal/buffer/ByteSequenceTensorBuffer.java
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -40,10 +40,9 @@
40
40
* <p>The values are stored as an array of {@link TF_TString}, internally wrapped with {@code
41
41
* tensorflow::tstring}, which is essentially a portable version of {@code std::string}.
42
42
*
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).
47
46
*
48
47
* <p>After its data has been initialized, the buffer is read-only as it is not possible to change
49
48
* safely a value without reinitializing the whole data.
@@ -66,7 +65,7 @@ public static <T> long computeSize(ByteSequenceProvider<?> byteSequenceProvider)
66
65
*
67
66
* <p>While it is not enforced programmatically, it is mandatory that this method is called only
68
67
* 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
70
69
* enough space to store it.
71
70
*
72
71
* @param byteSequenceProvider produces sequences of bytes to use as the tensor data
0 commit comments