Home
last modified time | relevance | path

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

/frameworks/ml/nn/common/operations/
DQuantizedLSTMTest.cpp61 const uint32_t outputSize = in QuantizedLSTMOpModel() local
63 outputSize_ = outputSize; in QuantizedLSTMOpModel()
66 OperandType cellStateOutOperandType(Type::TENSOR_QUANT16_SYMM, {numBatches, outputSize}, in QuantizedLSTMOpModel()
69 OperandType outputOperandType(Type::TENSOR_QUANT8_ASYMM, {numBatches, outputSize}, in QuantizedLSTMOpModel()
82 cellStateOut_.resize(numBatches * outputSize, 0); in QuantizedLSTMOpModel()
83 output_.resize(numBatches * outputSize, 0); in QuantizedLSTMOpModel()
154 int outputSize() { return outputSize_; } in outputSize() function in android::nn::wrapper::QuantizedLSTMOpModel
255 const int outputSize = lstm->outputSize(); in VerifyGoldens() local
258 const uint8_t* goldenBatchStart = output[b].data() + i * outputSize; in VerifyGoldens()
259 const uint8_t* goldenBatchEnd = goldenBatchStart + outputSize; in VerifyGoldens()
[all …]
DQuantizedLSTM.cpp262 const uint32_t outputSize = SizeOfDimension(prevOutput, 1); in prepare() local
271 NN_RET_CHECK_EQ(SizeOfDimension(weights, 0), outputSize); in prepare()
290 NN_RET_CHECK(checkWeightsShape(recurrentToInputWeights, outputSize)); in prepare()
291 NN_RET_CHECK(checkWeightsShape(recurrentToForgetWeights, outputSize)); in prepare()
292 NN_RET_CHECK(checkWeightsShape(recurrentToCellWeights, outputSize)); in prepare()
293 NN_RET_CHECK(checkWeightsShape(recurrentToOutputWeights, outputSize)); in prepare()
303 NN_RET_CHECK_EQ(SizeOfDimension(bias, 0), outputSize); in prepare()
320 NN_CHECK_EQ(SizeOfDimension(prevCellState, 1), outputSize); in prepare()
354 const int outputSize = SizeOfDimension(inputToInputWeights_, 0); in concatenateWeights() local
356 assignWeightsSubmatrix(inputToInputWeights_, 0 * outputSize, outputSize, weightsDims, weights); in concatenateWeights()
[all …]
DQLSTM.cpp193 const uint32_t outputSize = getSizeOfDimension(recurrentToOutputShape, 1); in prepare() local
215 NN_RET_CHECK_EQ(getSizeOfDimension(recurrentToInputShape, 1), outputSize); in prepare()
221 NN_RET_CHECK_EQ(getSizeOfDimension(recurrentToForgetShape, 1), outputSize); in prepare()
225 NN_RET_CHECK_EQ(getSizeOfDimension(recurrentToCellShape, 1), outputSize); in prepare()
287 NN_RET_CHECK_EQ(getSizeOfDimension(projectionShape, 0), outputSize); in prepare()
294 NN_RET_CHECK_EQ(getSizeOfDimension(projectionBiasShape, 0), outputSize); in prepare()
300 NN_RET_CHECK_EQ(getSizeOfDimension(outputStateShape, 1), outputSize); in prepare()
393 const uint32_t outputSize = recurrentToOutputWeightsShape.dimensions[1]; in execute() local
680 outputSize, numUnits, in execute()
684 cellToForgetBuffer, outputSize, cellStateBuffer, batchSize, in execute()
[all …]
DUnidirectionalSequenceLSTM.cpp213 const uint32_t outputSize = getSizeOfDimension(recurrentToOutputShape, 1); in prepare() local
235 NN_RET_CHECK_EQ(getSizeOfDimension(recurrentToInputShape, 1), outputSize); in prepare()
241 NN_RET_CHECK_EQ(getSizeOfDimension(recurrentToForgetShape, 1), outputSize); in prepare()
245 NN_RET_CHECK_EQ(getSizeOfDimension(recurrentToCellShape, 1), outputSize); in prepare()
307 NN_RET_CHECK_EQ(getSizeOfDimension(projectionShape, 0), outputSize); in prepare()
314 NN_RET_CHECK_EQ(getSizeOfDimension(projectionBiasShape, 0), outputSize); in prepare()
320 NN_RET_CHECK_EQ(getSizeOfDimension(outputStateShape, 1), outputSize); in prepare()
375 outputShape.dimensions[2] = outputSize; in prepare()
384 outputStateOutTensor.dimensions[1] = outputSize; in prepare()
DLSTM.cpp438 const uint32_t outputSize = getSizeOfDimension(recurrent_to_output_weights_shape, 1); in LSTMEvalFloat32() local
443 const uint32_t batchOutputSize = batchSize * outputSize; in LSTMEvalFloat32()
462 transposedOutputShape.dimensions[2] = outputSize; in LSTMEvalFloat32()
470 output_state_in_buffer, output_state_in_buffer + batchSize * outputSize); in LSTMEvalFloat32()
507 output_state_out_buffer + batchSize * outputSize); in LSTMEvalFloat32()
558 const uint32_t outputSize = getSizeOfDimension(recurrent_to_output_weights_shape, 1); in LSTMEvalFloat16() local
563 const uint32_t batchOutputSize = batchSize * outputSize; in LSTMEvalFloat16()
578 std::vector<float> recurrent_to_input_weights_float32(numCells * outputSize); in LSTMEvalFloat16()
583 std::vector<float> recurrent_to_forget_weights_float32(numCells * outputSize); in LSTMEvalFloat16()
586 std::vector<float> recurrent_to_cell_weights_float32(numCells * outputSize); in LSTMEvalFloat16()
[all …]
DQuantizedLSTM.h89 void concatenateBiases(uint32_t outputSize, int32_t* bias);
DSlice.cpp55 const int outputSize = getNumberOfElements(outputShape); in evalGeneric() local
/frameworks/ml/nn/runtime/test/
DTestMemoryInternal.cpp150 constexpr size_t outputSize = offsetForActual + sizeof(Matrix3x4); in TEST_F() local
151 int outputFd = ASharedMemory_create("output", outputSize); in TEST_F()
154 (uint8_t*)mmap(nullptr, outputSize, PROT_READ | PROT_WRITE, MAP_SHARED, outputFd, 0); in TEST_F()
156 memset(outputData, 0, outputSize); in TEST_F()
157 WrapperMemory actual(outputSize, PROT_READ | PROT_WRITE, outputFd, 0); in TEST_F()
175 munmap(outputData, outputSize); in TEST_F()
DTestValidateOperations.cpp4071 const uint32_t outputSize = 6; in unidirectionalSequenceLSTMTest() local
4075 uint32_t recurrentWeightsDims[2] = {numUnits, outputSize}; in unidirectionalSequenceLSTMTest()
4077 uint32_t projectionDims[2] = {outputSize, numUnits}; in unidirectionalSequenceLSTMTest()
4078 uint32_t projectionBiasDims[1] = {outputSize}; in unidirectionalSequenceLSTMTest()
4079 uint32_t outputStateDims[2] = {batchSize, outputSize}; in unidirectionalSequenceLSTMTest()
4082 uint32_t outputDims[3] = {maxTime, batchSize, outputSize}; in unidirectionalSequenceLSTMTest()
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
DCameraView.java143 Size outputSize = mCameraOps.getBestSize(); in resume() local
144 mProcessor = new ViewfinderProcessor(mRS, outputSize); in resume()
146 setAspectRatio((float) outputSize.getWidth() / outputSize.getHeight()); in resume()
147 getHolder().setFixedSize(outputSize.getWidth(), outputSize.getHeight()); in resume()
DCameraOps.java320 Size outputSize = null; in getBestSize() local
/frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/
DCameraView.java144 Size outputSize = mCameraOps.getBestSize(); in resume() local
145 mProcessor = new ViewfinderProcessor(mRS, outputSize); in resume()
147 setAspectRatio((float) outputSize.getWidth() / outputSize.getHeight()); in resume()
148 getHolder().setFixedSize(outputSize.getWidth(), outputSize.getHeight()); in resume()
DCameraOps.java296 Size outputSize = outputSizes[0]; in getBestSize() local
297 float outputAspect = (float) outputSize.getWidth() / outputSize.getHeight(); in getBestSize()
306 candidateSize.getWidth() > outputSize.getWidth()) { in getBestSize()
307 outputSize = candidateSize; in getBestSize()
311 return outputSize; in getBestSize()
/frameworks/av/media/codec2/components/mpeg4_h263/
DC2SoftMpeg4Enc.cpp428 int32_t outputSize = mOutBufferSize; in process() local
429 if (!PVGetVolHeader(mHandle, outPtr, &outputSize, 0)) { in process()
435 ALOGV("Bytes Generated in header %d\n", outputSize); in process()
440 C2StreamInitDataInfo::output::AllocUnique(outputSize, 0u); in process()
447 memcpy(csd->m.value, outPtr, outputSize); in process()
572 int32_t outputSize = mOutBufferSize; in process() local
573 if (!PVEncodeVideoFrame(mHandle, &vin, &vout, &modTimeMs, outPtr, &outputSize, &nLayer) || in process()
580 ALOGV("outputSize filled : %d", outputSize); in process()
585 if (outputSize) { in process()
586 std::shared_ptr<C2Buffer> buffer = createLinearBuffer(block, 0, outputSize); in process()
/frameworks/av/media/libstagefright/foundation/
DOpusHeader.cpp191 uint8_t* output, size_t outputSize, uint64_t codecDelay, in WriteOpusHeaders() argument
193 if (outputSize < AOPUS_UNIFIED_CSD_MINSIZE) { in WriteOpusHeaders()
219 outputSize - headerLen); in WriteOpusHeaders()
242 if (headerLen > (outputSize - AOPUS_MARKER_SIZE - AOPUS_LENGTH_SIZE - length)) { in WriteOpusHeaders()
255 if (headerLen > (outputSize - AOPUS_MARKER_SIZE - AOPUS_LENGTH_SIZE - length)) { in WriteOpusHeaders()
/frameworks/ml/nn/runtime/test/android_fuzzing/
DDriverFuzzTest.cpp201 size_t outputSize = 0; in createRequest() local
214 .offset = static_cast<uint32_t>(outputSize), in createRequest()
216 outputSize += op.data.size() == 0 ? TestBuffer::kAlignment : op.data.alignedSize(); in createRequest()
224 outputSize = std::max<size_t>(outputSize, 1); in createRequest()
225 auto outputMemory = nn::allocateSharedMemory(outputSize); in createRequest()
/frameworks/base/keystore/java/android/security/keystore/
DAndroidKeyStoreCipherSpiBase.java410 int outputSize = (outputArray != null) ? outputArray.length : 0; in engineUpdate() local
411 if (outputSize > 0) { in engineUpdate()
417 "Output buffer too small. Produced: " + outputSize + ", available: " in engineUpdate()
421 return outputSize; in engineUpdate()
567 int outputSize = (outputArray != null) ? outputArray.length : 0; in engineDoFinal() local
568 if (outputSize > 0) { in engineDoFinal()
574 "Output buffer too small. Produced: " + outputSize + ", available: " in engineDoFinal()
578 return outputSize; in engineDoFinal()
/frameworks/ml/nn/runtime/test/fuzzing/operation_signatures/
DSelection.cpp252 int32_t outputSize = op->outputs[0]->dimensions[i].getValue(); in sliceFinalizer() local
254 begin[i] = getUniform<int32_t>(0, inputSize - outputSize); in sliceFinalizer()
255 size[i] = outputSize; in sliceFinalizer()
325 int32_t outputSize = op->outputs[0]->dimensions[o++].getValue(); in stridedSliceFinalizer() local
326 int32_t maxStart = inputSize - (outputSize - 1) * stride - 1; in stridedSliceFinalizer()
329 int32_t minEnd = begin[i] + (outputSize - 1) * stride + 1; in stridedSliceFinalizer()
330 int32_t maxEnd = std::min(begin[i] + outputSize * stride, inputSize); in stridedSliceFinalizer()
/frameworks/base/libs/androidfw/
DZipUtils.cpp105 BufferWriter(void* output, size_t outputSize) : Writer(), in BufferWriter() argument
106 mOutput(reinterpret_cast<uint8_t*>(output)), mOutputSize(outputSize), mBytesWritten(0) { in BufferWriter()
/frameworks/av/media/libaudioprocessing/tests/
Dtest-mixer.cpp217 const size_t outputSize = outputFrames * outputFrameSize; in main() local
221 (void) posix_memalign(&outputAddr, 32, outputSize); in main()
222 memset(outputAddr, 0, outputSize); in main()
Dresampler_tests.cpp109 size_t outputSize = outputFrameSize * outputFrames; in testBufferIncrement() local
110 outputSize &= ~7; in testBufferIncrement()
195 size_t outputSize = outputFrameSize * outputFrames; in testStopbandDownconversion() local
196 outputSize &= ~7; in testStopbandDownconversion()
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
DOpusHeader.h77 uint8_t* output, size_t outputSize, uint64_t codecDelay,
/frameworks/av/media/libstagefright/codecs/amrwbenc/inc/
Dcod_main.h92 int outputSize; member
/frameworks/ml/nn/tools/api/
Dtypes.spec4876 * and shape [outputSize, inputSize] specifying input-to-input part of
4882 * and shape [outputSize, inputSize] specifying input-to-forget part of
4888 * and shape [outputSize, inputSize] specifying input-to-cell part of
4894 * and shape [outputSize, inputSize] specifying input-to-output part of
4900 * and shape [outputSize, outputSize] specifying recurrent-to-input part
4906 * and shape [outputSize, outputSize] specifying recurrent-to-forget
4912 * and shape [outputSize, outputSize] specifying recurrent-to-cell part
4918 * and shape [outputSize, outputSize] specifying recurrent-to-output
4924 * [outputSize] specifying the bias for the fully-connected layer
4929 * [outputSize] specifying the bias for the fully-connected layer
[all …]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
DvoAMRWBEnc.c1656 st->outputSize = 0; in voAMRWB_Init()
1765 gData->outputSize = AMR_Enc_Encode(gData); /* encoder main function */ in voAMRWB_GetOutputData()
1767 pOutput->Length = gData->outputSize; /* get the output buffer length */ in voAMRWB_GetOutputData()