Home
last modified time | relevance | path

Searched refs:outputSize (Results 1 – 25 of 45) sorted by relevance

12

/external/tensorflow/tensorflow/lite/kernels/
Dquant_basic_lstm_test.cc33 int32_t weightsZeroPoint, int outputSize, in QuantizedLSTMOpModel() argument
42 output_size_ = outputSize; in QuantizedLSTMOpModel()
46 std::vector<int> output_shape{numBatches, outputSize}; in QuantizedLSTMOpModel()
47 std::vector<int> weight_shape{4 * outputSize, outputSize + inputSize}; in QuantizedLSTMOpModel()
48 std::vector<int> state_shape{numBatches, outputSize}; in QuantizedLSTMOpModel()
49 std::vector<int> bias_shape{4 * outputSize}; in QuantizedLSTMOpModel()
131 int outputSize() { return output_size_; } in outputSize() function in tflite::__anond96182980111::QuantizedLSTMOpModel
185 const int outputSize = lstm->outputSize(); in VerifyGoldens() local
188 const uint8_t* goldenBatchStart = output[b].data() + i * outputSize; in VerifyGoldens()
189 const uint8_t* goldenBatchEnd = goldenBatchStart + outputSize; in VerifyGoldens()
[all …]
Dembedding_lookup.cc60 TfLiteIntArray* outputSize = TfLiteIntArrayCreate(NumDimensions(value)); in Prepare() local
62 outputSize->data[0] = SizeOfDimension(lookup, 0); in Prepare()
63 outputSize->data[1] = SizeOfDimension(value, 1); in Prepare()
65 outputSize->data[i] = SizeOfDimension(value, i); in Prepare()
67 return context->ResizeTensor(context, output, outputSize); in Prepare()
Dhashtable_lookup.cc89 TfLiteIntArray* outputSize = TfLiteIntArrayCreate(NumDimensions(value)); in Prepare() local
90 outputSize->data[0] = SizeOfDimension(lookup, 0); in Prepare()
92 outputSize->data[i] = SizeOfDimension(value, i); in Prepare()
94 status = context->ResizeTensor(context, output, outputSize); in Prepare()
Dlsh_projection.cc96 TfLiteIntArray* outputSize = TfLiteIntArrayCreate(1); in Resize() local
99 outputSize->data[0] = SizeOfDimension(hash, 0); in Resize()
102 outputSize->data[0] = SizeOfDimension(hash, 0) * SizeOfDimension(hash, 1); in Resize()
107 return context->ResizeTensor(context, output, outputSize); in Resize()
Ddepthwise_conv.cc274 TfLiteIntArray* outputSize = TfLiteIntArrayCreate(4); in Prepare() local
275 outputSize->data[0] = batches; in Prepare()
276 outputSize->data[1] = out_height; in Prepare()
277 outputSize->data[2] = out_width; in Prepare()
278 outputSize->data[3] = channels_out; in Prepare()
279 return context->ResizeTensor(context, output, outputSize); in Prepare()
/external/okio/okio/src/jvmMain/kotlin/okio/
DCipherSource.kt64 var outputSize = cipher.getOutputSize(size) in update() variable
65 while (outputSize > Segment.SIZE) { in update()
66 check(size > blockSize) { "Unexpected output size $outputSize for input size $size" } in update()
68 outputSize = cipher.getOutputSize(size) in update()
70 val s = buffer.writableSegment(outputSize) in update()
88 val outputSize = cipher.getOutputSize(0) in doFinal() constant
89 if (outputSize == 0) return in doFinal()
92 val s = buffer.writableSegment(outputSize) in doFinal()
DCipherSink.kt51 var outputSize = cipher.getOutputSize(size) in update() variable
52 while (outputSize > Segment.SIZE) { in update()
53 check(size > blockSize) { "Unexpected output size $outputSize for input size $size" } in update()
55 outputSize = cipher.getOutputSize(size) in update()
57 val s = buffer.writableSegment(outputSize) in update()
104 val outputSize = cipher.getOutputSize(0) in doFinal() constant
105 if (outputSize == 0) return null in doFinal()
111 val s = buffer.writableSegment(outputSize) in doFinal()
/external/webrtc/sdk/objc/unittests/
DRTCCVPixelBuffer_xctest.mm132 outputSize:CGSizeMake(720, 1280)];
143 outputSize:CGSizeMake(0, 0)];
149 outputSize:CGSizeMake(148, 320)];
155 outputSize:CGSizeMake(361, 640)];
196 outputSize:CGSizeMake(360, 640)];
201 outputSize:(CGSize)outputSize {
215 NULL, outputSize.width, outputSize.height, outputFormat, NULL, &outputPixelBufferRef);
218 if ([buffer requiresScalingToWidth:outputSize.width height:outputSize.height]) {
220 [buffer bufferSizeForCroppingAndScalingToWidth:outputSize.width height:outputSize.height];
231 XCTAssertEqual(scaledBuffer.width, outputSize.width);
[all …]
/external/conscrypt/repackaged/benchmark-base/src/main/java/com/android/org/conscrypt/
DCipherEncryptBenchmark.java69 final int outputSize; field in CipherEncryptBenchmark.EncryptStrategy
78 outputSize = cipher.getOutputSize(messageSize); in EncryptStrategy()
106 cipherBytes = new byte[outputSize]; in ArrayStrategy()
126 output = ByteBuffer.allocate(outputSize); in ByteBufferStrategy()
130 output = ByteBuffer.allocateDirect(outputSize); in ByteBufferStrategy()
134 output = ByteBuffer.allocateDirect(outputSize); in ByteBufferStrategy()
138 output = ByteBuffer.allocate(outputSize); in ByteBufferStrategy()
/external/conscrypt/benchmark-base/src/main/java/org/conscrypt/
DCipherEncryptBenchmark.java64 final int outputSize; field in CipherEncryptBenchmark.EncryptStrategy
73 outputSize = cipher.getOutputSize(messageSize); in EncryptStrategy()
101 cipherBytes = new byte[outputSize]; in ArrayStrategy()
121 output = ByteBuffer.allocate(outputSize); in ByteBufferStrategy()
125 output = ByteBuffer.allocateDirect(outputSize); in ByteBufferStrategy()
129 output = ByteBuffer.allocateDirect(outputSize); in ByteBufferStrategy()
133 output = ByteBuffer.allocate(outputSize); in ByteBufferStrategy()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/audio/
DSonicAudioProcessor.java171 int outputSize = sonic.getOutputSize(); in queueInput() local
172 if (outputSize > 0) { in queueInput()
173 if (buffer.capacity() < outputSize) { in queueInput()
174 buffer = ByteBuffer.allocateDirect(outputSize).order(ByteOrder.nativeOrder()); in queueInput()
181 outputBytes += outputSize; in queueInput()
182 buffer.limit(outputSize); in queueInput()
DChannelMappingAudioProcessor.java75 int outputSize = frameCount * outputAudioFormat.bytesPerFrame; in queueInput() local
76 ByteBuffer buffer = replaceOutputBuffer(outputSize); in queueInput()
/external/exoplayer/tree/extensions/ffmpeg/src/main/jni/
Dffmpeg_jni.cc91 uint8_t *outputBuffer, int outputSize);
133 jint inputSize, jobject outputData, jint outputSize) { in AUDIO_DECODER_FUNC() argument
146 if (outputSize < 0) { in AUDIO_DECODER_FUNC()
147 LOGE("Invalid output buffer length: %d", outputSize); in AUDIO_DECODER_FUNC()
157 outputSize); in AUDIO_DECODER_FUNC()
259 uint8_t *outputBuffer, int outputSize) { in decodePacket() argument
320 if (outSize + bufferOutSize > outputSize) { in decodePacket()
322 outputSize, outSize + bufferOutSize); in decodePacket()
/external/wycheproof/java/com/google/security/wycheproof/testcases/
DAesGcmTest.java228 int outputSize = cipher.getOutputSize(test.pt.length); in testByteBuffer() local
229 ByteBuffer ctBuffer = ByteBuffer.allocate(outputSize); in testByteBuffer()
237 outputSize = cipher.getOutputSize(test.ct.length); in testByteBuffer()
238 ByteBuffer decrypted = ByteBuffer.allocate(outputSize); in testByteBuffer()
251 int outputSize = cipher.getOutputSize(test.pt.length); in testByteBufferAlias() local
252 byte[] backingArray = new byte[outputSize]; in testByteBufferAlias()
277 int outputSize = cipher.getOutputSize(test.pt.length); in testReadOnlyByteBuffer() local
278 ByteBuffer ctBuffer = ByteBuffer.allocate(outputSize); in testReadOnlyByteBuffer()
287 outputSize = cipher.getOutputSize(test.ct.length); in testReadOnlyByteBuffer()
288 ByteBuffer decrypted = ByteBuffer.allocate(outputSize); in testReadOnlyByteBuffer()
/external/brotli/java/org/brotli/wrapper/dec/
DBrotliDecoderChannel.java60 int outputSize = decode(); in read() local
61 if (outputSize <= 0) { in read()
62 return result == 0 ? outputSize : result; in read()
/external/tensorflow/tensorflow/lite/kernels/hashtable/
Dhashtable_size.cc47 TfLiteIntArray* outputSize = TfLiteIntArrayCreate(1); in PrepareHashtableSize() local
48 outputSize->data[0] = 1; in PrepareHashtableSize()
49 return context->ResizeTensor(context, output_tensor, outputSize); in PrepareHashtableSize()
Dhashtable.cc97 TfLiteIntArray* outputSize = TfLiteIntArrayCreate(1); in PrepareHashtable() local
98 outputSize->data[0] = 1; in PrepareHashtable()
101 resource_handle_tensor->dims = outputSize; in PrepareHashtable()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/audio/
DTrimmingAudioProcessorTest.java82 int outputSize = 0; in feedAndDrainAudioProcessorToEndOfTrackOne() local
95 outputSize += outputBuffer.remaining(); in feedAndDrainAudioProcessorToEndOfTrackOne()
99 return outputSize; in feedAndDrainAudioProcessorToEndOfTrackOne()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DArabicShaping.java1827 int outputSize = sourceLength; in internalShape() local
1831 outputSize = shapeUnicode(temp, 0, sourceLength, destSize, 1); in internalShape()
1838 outputSize = shapeUnicode(temp, 0, sourceLength, destSize, 2); in internalShape()
1841 outputSize = shapeUnicode(temp, 0, sourceLength, destSize, 0); in internalShape()
1845 outputSize = handleTashkeelWithTatweel(temp,sourceLength); in internalShape()
1851 outputSize = deShapeUnicode(temp, 0, sourceLength, destSize); in internalShape()
1858 if (outputSize > destSize) { in internalShape()
1881 for (int i = 0; i < outputSize; ++i) { in internalShape()
1894 for (int i = 0; i < outputSize; ++i) { in internalShape()
1904 shapeToArabicDigitsWithContext(temp, 0, outputSize, digitBase, false); in internalShape()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DArabicShaping.java1869 int outputSize = sourceLength; in internalShape() local
1873 outputSize = shapeUnicode(temp, 0, sourceLength, destSize, 1); in internalShape()
1880 outputSize = shapeUnicode(temp, 0, sourceLength, destSize, 2); in internalShape()
1883 outputSize = shapeUnicode(temp, 0, sourceLength, destSize, 0); in internalShape()
1887 outputSize = handleTashkeelWithTatweel(temp,sourceLength); in internalShape()
1893 outputSize = deShapeUnicode(temp, 0, sourceLength, destSize); in internalShape()
1900 if (outputSize > destSize) { in internalShape()
1923 for (int i = 0; i < outputSize; ++i) { in internalShape()
1936 for (int i = 0; i < outputSize; ++i) { in internalShape()
1946 shapeToArabicDigitsWithContext(temp, 0, outputSize, digitBase, false); in internalShape()
[all …]
/external/exoplayer/tree/extensions/opus/src/main/jni/
Dopus_jni.cc102 const jint outputSize = in DECODER_FUNC() local
105 env->CallObjectMethod(jOutputBuffer, outputBufferInit, jTimeUs, outputSize); in DECODER_FUNC()
111 outputBufferInit, jTimeUs, outputSize); in DECODER_FUNC()
/external/icu/icu4c/source/common/
Dushape.cpp1498 int32_t outputSize, spacesCountl=0, spacesCountr=0; in u_shapeArabic() local
1541 outputSize=calculateSize(source,sourceLength,destCapacity,options); in u_shapeArabic()
1543 outputSize=sourceLength; in u_shapeArabic()
1546 if(outputSize>destCapacity) { in u_shapeArabic()
1549 return outputSize; in u_shapeArabic()
1556 if(sourceLength>outputSize) { in u_shapeArabic()
1557 outputSize=sourceLength; in u_shapeArabic()
1561 if(outputSize<=UPRV_LENGTHOF(buffer)) { in u_shapeArabic()
1562 outputSize=UPRV_LENGTHOF(buffer); in u_shapeArabic()
1565 tempbuffer = (UChar *)uprv_malloc(outputSize*U_SIZEOF_UCHAR); in u_shapeArabic()
[all …]
/external/exoplayer/tree/extensions/flac/src/main/jni/
Dflac_jni.cc168 jint outputSize = env->GetDirectBufferCapacity(jOutputBuffer); in DECODER_FUNC() local
169 return context->parser->readBuffer(outputBuffer, outputSize); in DECODER_FUNC()
176 jint outputSize = env->GetArrayLength(jOutputArray); in DECODER_FUNC() local
177 int count = context->parser->readBuffer(outputBuffer, outputSize); in DECODER_FUNC()
/external/oboe/samples/RhythmGame/src/main/cpp/audio/
DNDKExtractor.cpp160 size_t outputSize; in decode() local
161 … uint8_t *outputBuffer = AMediaCodec_getOutputBuffer(codec, outputIndex, &outputSize); in decode()
/external/exoplayer/tree/extensions/flac/src/main/java/com/google/android/exoplayer2/ext/flac/
DFlacExtractor.java142 int outputSize = outputByteBuffer.limit(); in read() local
143 if (outputSize == 0) { in read()
147 outputSample(outputBuffer, outputSize, decoderJni.getLastFrameTimestamp(), trackOutput); in read()

12