Home
last modified time | relevance | path

Searched refs:max_output_length (Results 1 – 5 of 5) sorted by relevance

/external/libtextclassifier/utils/tflite/
Dencoder_common.cc92 TfLiteStatus ResizeOutputTensor(const int max_output_length, in ResizeOutputTensor() argument
97 CreateIntArray({kEncoderBatchSize, max_output_length}))); in ResizeOutputTensor()
101 int CopyDataToTensorAndPadOrTruncate(const int32_t max_output_length, in CopyDataToTensorAndPadOrTruncate() argument
106 std::max(0, static_cast<int>(data.size()) - max_output_length); in CopyDataToTensorAndPadOrTruncate()
114 for (; output_offset < max_output_length; ++output_offset) { in CopyDataToTensorAndPadOrTruncate()
Dtext_encoder.cc137 int max_output_length) { in ResizeOutputTensors() argument
140 ResizeOutputTensor(max_output_length, in ResizeOutputTensors()
147 max_output_length, in ResizeOutputTensors()
155 max_output_length, in ResizeOutputTensors()
238 const int max_output_length = output_encoded.dims->data[1]; in Eval() local
239 const int max_encoded_position = max_output_length; in Eval()
257 max_output_length, encoded_total, in Eval()
262 CopyDataToTensorAndPadOrTruncate(max_output_length, encoded_positions, in Eval()
Dtoken_encoder.cc56 int max_output_length) { in ResizeOutputTensors() argument
60 max_output_length, in ResizeOutputTensors()
68 max_output_length, in ResizeOutputTensors()
137 const int max_output_length = output_positions.dims->data[1]; in Eval() local
138 const int max_encoded_position = max_output_length; in Eval()
152 max_output_length, encoded_positions, in Eval()
Dencoder_common.h52 TfLiteStatus ResizeOutputTensor(const int max_output_length,
60 int CopyDataToTensorAndPadOrTruncate(const int32_t max_output_length,
/external/grpc-grpc/src/core/ext/transport/chttp2/transport/
Dbin_encoder.cc175 size_t max_output_length = max_output_bits / 8 + (max_output_bits % 8 != 0); in grpc_chttp2_base64_encode_and_huffman_compress() local
176 grpc_slice output = GRPC_SLICE_MALLOC(max_output_length); in grpc_chttp2_base64_encode_and_huffman_compress()