diff --git a/tensorflow/lite/string_util.h b/tensorflow/lite/string_util.h index 0c6ce0b8bff..b8f3fcd3b9f 100644 --- a/tensorflow/lite/string_util.h +++ b/tensorflow/lite/string_util.h @@ -16,8 +16,9 @@ limitations under the License. // Util methods to read and write String tensors. // String tensors are considered to be char tensor with protocol. // [0, 3] 4 bytes: N, num of strings in the tensor in little endian. -// [(i+1)*4, (i+1)*4+3] 4 bytes: offset of i-th string in little endian. -// [(N+2)*4, (N+2)*4+3] 4 bytes: length of the whole char buffer. +// [(i+1)*4, (i+1)*4+3] 4 bytes: offset of i-th string in little endian, +// for i from 0 to N-1. +// [(N+1)*4, (N+1)*4+3] 4 bytes: length of the whole char buffer. // [offset(i), offset(i+1) - 1] : content of i-th string. // Example of a string tensor: // [