Home
last modified time | relevance | path

Searched refs:inputSize (Results 1 – 24 of 24) sorted by relevance

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DCamera2ReprocessCaptureTest.java270 for (Size inputSize : supportedInputSizes) { in testReprocessingAllCombinations()
282 testReprocess(cameraId, inputSize, inputFormat, in testReprocessingAllCombinations()
287 testReprocessBurst(cameraId, inputSize, inputFormat, in testReprocessingAllCombinations()
292 testReprocessMixedBurst(cameraId, inputSize, inputFormat, in testReprocessingAllCombinations()
308 private void testReprocessMixedBurst(String cameraId, Size inputSize, int inputFormat, in testReprocessMixedBurst() argument
313 inputSize + " inputFormat: " + inputFormat + " reprocessOutputSize: " + in testReprocessMixedBurst()
331 setupImageReaders(inputSize, inputFormat, reprocessOutputSize, reprocessOutputFormat, in testReprocessMixedBurst()
360 cameraId, inputSize.getWidth(), inputSize.getHeight(), inputFormat, in testReprocessMixedBurst()
380 private void testReprocessBurst(String cameraId, Size inputSize, int inputFormat, in testReprocessBurst() argument
385 inputSize + " inputFormat: " + inputFormat + " reprocessOutputSize: " + in testReprocessBurst()
[all …]
/frameworks/ml/nn/common/operations/
DUnidirectionalSequenceRNN.cpp53 const uint32_t inputSize = getSizeOfDimension(inputShape, 2); in transposeFirstTwoDims() local
56 for (int i = 0; i < inputSize; ++i) { in transposeFirstTwoDims()
57 const uint32_t inputIndex = f * secondDimSize * inputSize + s * inputSize + i; in transposeFirstTwoDims()
58 const uint32_t outputIndex = s * firstDimSize * inputSize + f * inputSize + i; in transposeFirstTwoDims()
99 const uint32_t inputSize = getSizeOfDimension(inputShape, 2); in executeTyped() local
111 input += batchSize * inputSize; in executeTyped()
167 const uint32_t inputSize = getSizeOfDimension(input, 2); in prepare() local
175 NN_RET_CHECK_EQ(inputSize, getSizeOfDimension(weights, 1)); in prepare()
DQuantizedLSTMTest.cpp152 int inputSize() { return inputSize_; } in inputSize() function in android::nn::wrapper::QuantizedLSTMOpModel
241 const int inputSize = lstm->inputSize(); in VerifyGoldens() local
242 EXPECT_GT(inputSize, 0); in VerifyGoldens()
243 const int inputSequenceSize = input[0].size() / inputSize; in VerifyGoldens()
248 const uint8_t* batchStart = input[b].data() + i * inputSize; in VerifyGoldens()
249 const uint8_t* batchEnd = batchStart + inputSize; in VerifyGoldens()
272 const int inputSize = 2; in TEST_F() local
286 OperandTypeParams(Type::TENSOR_QUANT8_ASYMM, {numBatches, inputSize}, 1. / 128., 128), in TEST_F()
291 OperandTypeParams(Type::TENSOR_QUANT8_ASYMM, {outputSize, inputSize}, weightsScale, in TEST_F()
293 OperandTypeParams(Type::TENSOR_QUANT8_ASYMM, {outputSize, inputSize}, weightsScale, in TEST_F()
[all …]
DBidirectionalSequenceRNN.cpp70 const uint32_t inputSize = getSizeOfDimension(inputShape, 2); in transposeFirstTwoDims() local
73 for (int i = 0; i < inputSize; ++i) { in transposeFirstTwoDims()
74 const uint32_t inputIndex = f * secondDimSize * inputSize + s * inputSize + i; in transposeFirstTwoDims()
75 const uint32_t outputIndex = s * firstDimSize * inputSize + f * inputSize + i; in transposeFirstTwoDims()
221 const uint32_t inputSize = getSizeOfDimension(inputShape, 2); in executeTyped() local
259 const T* inputBatchPtr = input + i * batchSize * inputSize; in executeTyped()
278 const T* inputBatchPtr = bwInput + i * batchSize * inputSize; in executeTyped()
392 const uint32_t inputSize = getSizeOfDimension(input, 2); in prepare() local
404 NN_RET_CHECK_EQ(inputSize, getSizeOfDimension(fwWeights, 1)); in prepare()
412 NN_RET_CHECK_EQ(inputSize, getSizeOfDimension(bwWeights, 1)); in prepare()
DLSTM.cpp436 const uint32_t inputSize = getSizeOfDimension(input_shape, inputRank - 1); in LSTMEvalFloat32() local
441 batchInputShape.dimensions = {batchSize, inputSize}; in LSTMEvalFloat32()
442 const uint32_t batchInputSize = batchSize * inputSize; in LSTMEvalFloat32()
556 const uint32_t inputSize = getSizeOfDimension(input_shape, inputRank - 1); in LSTMEvalFloat16() local
561 batchInputShape.dimensions = {batchSize, inputSize}; in LSTMEvalFloat16()
562 const uint32_t batchInputSize = batchSize * inputSize; in LSTMEvalFloat16()
567 std::vector<float> input_to_input_weights_float32(numCells * inputSize); in LSTMEvalFloat16()
571 std::vector<float> input_to_forget_weights_float32(numCells * inputSize); in LSTMEvalFloat16()
573 std::vector<float> input_to_cell_weights_float32(numCells * inputSize); in LSTMEvalFloat16()
575 std::vector<float> input_to_output_weights_float32(numCells * inputSize); in LSTMEvalFloat16()
[all …]
DQLSTM.cpp183 const uint32_t inputSize = getSizeOfDimension(inputShape, 1); in prepare() local
187 NN_RET_CHECK_EQ(getSizeOfDimension(inputToOutputShape, 1), inputSize); in prepare()
199 NN_RET_CHECK_EQ(getSizeOfDimension(inputToInputShape, 1), inputSize); in prepare()
205 NN_RET_CHECK_EQ(getSizeOfDimension(inputToForgetShape, 1), inputSize); in prepare()
209 NN_RET_CHECK_EQ(getSizeOfDimension(inputToCellShape, 1), inputSize); in prepare()
391 const uint32_t inputSize = inputShape.dimensions[1]; in execute() local
674 inputToForgetEffectiveScaleB, batchSize, inputSize, in execute()
697 inputToCellEffectiveScaleB, batchSize, inputSize, numUnits, in execute()
717 inputToInputEffectiveScaleB, batchSize, inputSize, in execute()
751 inputToOutputEffectiveScaleB, batchSize, inputSize, in execute()
DQuantizedLSTM.cpp255 const uint32_t inputSize = SizeOfDimension(input, 1); in prepare() local
281 NN_RET_CHECK(checkWeightsShape(inputToInputWeights, inputSize)); in prepare()
282 NN_RET_CHECK(checkWeightsShape(inputToForgetWeights, inputSize)); in prepare()
283 NN_RET_CHECK(checkWeightsShape(inputToCellWeights, inputSize)); in prepare()
284 NN_RET_CHECK(checkWeightsShape(inputToOutputWeights, inputSize)); in prepare()
DUnidirectionalSequenceLSTM.cpp203 const uint32_t inputSize = getSizeOfDimension(inputShape, inputRank - 1); in prepare() local
207 NN_RET_CHECK_EQ(getSizeOfDimension(inputToOutputShape, 1), inputSize); in prepare()
219 NN_RET_CHECK_EQ(getSizeOfDimension(inputToInputShape, 1), inputSize); in prepare()
225 NN_RET_CHECK_EQ(getSizeOfDimension(inputToForgetShape, 1), inputSize); in prepare()
229 NN_RET_CHECK_EQ(getSizeOfDimension(inputToCellShape, 1), inputSize); in prepare()
/frameworks/base/keystore/java/android/security/keystore/
DAndroidKeyStoreCipherSpiBase.java397 int inputSize = input.remaining(); in engineUpdate() local
402 input.array(), input.arrayOffset() + input.position(), inputSize); in engineUpdate()
403 input.position(input.position() + inputSize); in engineUpdate()
405 byte[] inputArray = new byte[inputSize]; in engineUpdate()
407 outputArray = engineUpdate(inputArray, 0, inputSize); in engineUpdate()
554 int inputSize = input.remaining(); in engineDoFinal() local
559 input.array(), input.arrayOffset() + input.position(), inputSize); in engineDoFinal()
560 input.position(input.position() + inputSize); in engineDoFinal()
562 byte[] inputArray = new byte[inputSize]; in engineDoFinal()
564 outputArray = engineDoFinal(inputArray, 0, inputSize); in engineDoFinal()
/frameworks/ml/nn/runtime/test/fuzzing/operation_signatures/
DSelection.cpp242 int32_t inputSize = op->inputs[0]->dimensions[i].getValue(); in sliceFinalizer() local
245 begin[i] = getUniform<int32_t>(0, inputSize - outputSize); in sliceFinalizer()
303 int32_t inputSize = op->inputs[0]->dimensions[i].getValue(); in stridedSliceFinalizer() local
308 int32_t maxStart = inputSize - (outputSize - 1) * stride - 1; in stridedSliceFinalizer()
312 int32_t maxEnd = std::min(begin[i] + outputSize * stride, inputSize); in stridedSliceFinalizer()
321 if (beginMask[i]) begin[i] = getUniform<int32_t>(-inputSize, inputSize - 1); in stridedSliceFinalizer()
322 if (endMask[i]) end[i] = getUniform<int32_t>(-inputSize, inputSize - 1); in stridedSliceFinalizer()
337 begin[i] = getUniform<int32_t>(0, inputSize - 1); in stridedSliceFinalizer()
/frameworks/ml/nn/runtime/test/
DTestMemoryInternal.cpp139 constexpr size_t inputSize = offsetForMatrix1 + sizeof(Matrix3x4); in TEST_F() local
140 int inputFd = ASharedMemory_create("input", inputSize); in TEST_F()
143 (uint8_t*)mmap(nullptr, inputSize, PROT_READ | PROT_WRITE, MAP_SHARED, inputFd, 0); in TEST_F()
146 WrapperMemory input(inputSize, PROT_READ, inputFd, 0); in TEST_F()
174 munmap(inputData, inputSize); in TEST_F()
DTestValidateOperations.cpp3927 const uint32_t inputSize = 4; in bidirectionlSequenceRNNTest() local
3930 uint32_t inputDims[3] = {maxTime, batchSize, inputSize}; in bidirectionlSequenceRNNTest()
3931 uint32_t weightsDims[2] = {inputSize, numUnits}; in bidirectionlSequenceRNNTest()
4003 const uint32_t inputSize = 4; in unidirectionlSequenceRNNTest() local
4006 uint32_t inputDims[3] = {maxTime, batchSize, inputSize}; in unidirectionlSequenceRNNTest()
4007 uint32_t weightsDims[2] = {inputSize, numUnits}; in unidirectionlSequenceRNNTest()
4069 const uint32_t inputSize = 5; in unidirectionalSequenceLSTMTest() local
4072 uint32_t inputDims[3] = {maxTime, batchSize, inputSize}; in unidirectionalSequenceLSTMTest()
4073 uint32_t inputWeightsDims[2] = {numUnits, inputSize}; in unidirectionalSequenceLSTMTest()
/frameworks/base/libs/androidfw/
DZipUtils.cpp84 BufferReader(const void* input, size_t inputSize) : Reader(), in BufferReader() argument
86 mInputSize(inputSize) { in BufferReader()
/frameworks/av/media/codec2/hidl/1.0/utils/
DInputSurfaceConnection.cpp127 C2StreamPictureSizeInfo::input inputSize; in init() local
129 c2_status_t c2Status = queryFromSink({ &inputSize, &usage }, in init()
155 inputSize.width, inputSize.height, in init()
/frameworks/av/media/tests/benchmark/src/native/decoder/
DC2Decoder.cpp51 C2StreamPictureSizeInfo::input inputSize(0u, width, height); in createCodec2Component() local
52 configParam.push_back(&inputSize); in createCodec2Component()
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
DUT_reduce.java401 final int inputSize = (1 << 18); in patternInterleavedReduce() local
403 final int[] input1 = createInputArrayInt(123, Integer.MAX_VALUE / inputSize); in patternInterleavedReduce()
404 final int[] input2 = createInputArrayInt(456, Integer.MAX_VALUE / inputSize); in patternInterleavedReduce()
412 pass &= result("patternInterleavedReduce (1)", new timing(inputSize), in patternInterleavedReduce()
414 pass &= result("patternInterleavedReduce (2)", new timing(inputSize), in patternInterleavedReduce()
443 final int inputSize = 1000; in patternDuplicateAnonymousResult() local
444 final int[] input = createInputArrayInt(149, Integer.MAX_VALUE / inputSize); in patternDuplicateAnonymousResult()
448 pass &= result("patternDuplicateAnonymousResult (Dec)", new timing(inputSize), in patternDuplicateAnonymousResult()
453 pass &= result("patternDuplicateAnonymousResult (Inc)", new timing(inputSize), in patternDuplicateAnonymousResult()
636 private boolean findMinMat(RenderScript RS, int seed, int[] inputSize, in findMinMat() argument
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
DUT_reduce.java403 final int inputSize = (1 << 18); in patternInterleavedReduce() local
405 final int[] input1 = createInputArrayInt(123, Integer.MAX_VALUE / inputSize); in patternInterleavedReduce()
406 final int[] input2 = createInputArrayInt(456, Integer.MAX_VALUE / inputSize); in patternInterleavedReduce()
414 pass &= result("patternInterleavedReduce (1)", new timing(inputSize), in patternInterleavedReduce()
416 pass &= result("patternInterleavedReduce (2)", new timing(inputSize), in patternInterleavedReduce()
445 final int inputSize = 1000; in patternDuplicateAnonymousResult() local
446 final int[] input = createInputArrayInt(149, Integer.MAX_VALUE / inputSize); in patternDuplicateAnonymousResult()
450 pass &= result("patternDuplicateAnonymousResult (Dec)", new timing(inputSize), in patternDuplicateAnonymousResult()
455 pass &= result("patternDuplicateAnonymousResult (Inc)", new timing(inputSize), in patternDuplicateAnonymousResult()
638 private boolean findMinMat(RenderScript RS, int seed, int[] inputSize, in findMinMat() argument
[all …]
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/test/
DMpeg4H263DecoderTest.cpp249 int32_t inputSize = (Info)[frameIndex].bytesCount; in processMpeg4H263Decoder() local
254 status = PVDecodeVopHeader(mDecHandle, &bitstreamTmp, &timestamp, &inputSize, &headerInfo, in processMpeg4H263Decoder()
273 status = PVDecodeVopBody(mDecHandle, &inputSize); in processMpeg4H263Decoder()
/frameworks/av/media/libstagefright/codecs/amrwbenc/inc/
Dcod_main.h88 int inputSize; member
/frameworks/av/media/tests/benchmark/src/native/encoder/
DC2Encoder.cpp61 C2StreamPictureSizeInfo::input inputSize(0u, mWidth, mHeight); in createCodec2Component() local
62 configParam.push_back(&inputSize); in createCodec2Component()
/frameworks/ml/nn/runtime/test/fibonacci_extension/
DFibonacciExtensionTest.cpp130 uint32_t inputSize = inputType.dimensions[0]; in addNopOperation() local
131 uint32_t inputLength = sizeof(float) * inputSize; in addNopOperation()
/frameworks/base/core/java/android/hardware/camera2/params/
DMandatoryStreamCombination.java942 ArrayList<Size> inputSize = new ArrayList<Size>(); in generateAvailableCombinations() local
945 inputSize.add(maxPrivateInputSize); in generateAvailableCombinations()
948 inputSize.add(maxYUVInputSize); in generateAvailableCombinations()
952 streamsInfo.add(new MandatoryStreamInformation(inputSize, format, in generateAvailableCombinations()
954 streamsInfo.add(new MandatoryStreamInformation(inputSize, format)); in generateAvailableCombinations()
/frameworks/ml/nn/tools/api/
Dtypes.spec3494 * inputSize], otherwise the input has a shape [batchSize, maxTime,
3495 * inputSize].
3497 * A 2-D tensor of shape [fwNumUnits, inputSize].
3506 * A 2-D tensor of shape [bwNumUnits, inputSize].
3531 * A 2-D tensor of shape [fwNumUnits, inputSize].
3533 * A 2-D tensor of shape [bwNumUnits, inputSize].
4871 * and shape [numBatches, inputSize] specifying the input to the LSTM
4876 * 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
[all …]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
DvoAMRWBEnc.c1648 st->inputSize = 0; in voAMRWB_Init()