Home | History | Annotate | Download | only in lang_id

Lines Matching defs:bytes

67 // Returns total number of bytes of the words from sentence, without the ^
87 // Using mmap as a fast way to read the model bytes.
91 TC_LOG(ERROR) << "Unable to read model bytes.";
99 // Using mmap as a fast way to read the model bytes.
103 TC_LOG(ERROR) << "Unable to read model bytes.";
250 StringPiece bytes = model_data.GetBytesForInputFile(input_file_name);
251 if (bytes.data() == nullptr) {
252 TC_LOG(ERROR) << "Unable to get bytes for TaskInput " << input_name;
256 if (!ParseProtoFromMemory(bytes, proto.get())) {
282 StringPiece bytes = model_data.GetBytesForInputFile(input_file_name);
283 if (bytes.data() == nullptr) {
284 TC_LOG(ERROR) << "Unable to get bytes for TaskInput " << input_name;
288 if (!ParseProtoFromMemory(bytes, &records)) {