/packages/modules/NeuralNetworks/common/cpu_operations/ |
D | QuantizedLSTMTest.cpp | 62 const uint32_t outputSize = in QuantizedLSTMOpModel() local 64 outputSize_ = outputSize; in QuantizedLSTMOpModel() 67 OperandType cellStateOutOperandType(Type::TENSOR_QUANT16_SYMM, {numBatches, outputSize}, in QuantizedLSTMOpModel() 70 OperandType outputOperandType(Type::TENSOR_QUANT8_ASYMM, {numBatches, outputSize}, in QuantizedLSTMOpModel() 83 cellStateOut_.resize(numBatches * outputSize, 0); in QuantizedLSTMOpModel() 84 output_.resize(numBatches * outputSize, 0); in QuantizedLSTMOpModel() 155 int outputSize() { return outputSize_; } in outputSize() function in android::nn::wrapper::QuantizedLSTMOpModel 256 const int outputSize = lstm->outputSize(); in VerifyGoldens() local 259 const uint8_t* goldenBatchStart = output[b].data() + i * outputSize; in VerifyGoldens() 260 const uint8_t* goldenBatchEnd = goldenBatchStart + outputSize; in VerifyGoldens() [all …]
|
D | QuantizedLSTM.cpp | 263 const uint32_t outputSize = SizeOfDimension(prevOutput, 1); in prepare() local 272 NN_RET_CHECK_EQ(SizeOfDimension(weights, 0), outputSize); in prepare() 291 NN_RET_CHECK(checkWeightsShape(recurrentToInputWeights, outputSize)); in prepare() 292 NN_RET_CHECK(checkWeightsShape(recurrentToForgetWeights, outputSize)); in prepare() 293 NN_RET_CHECK(checkWeightsShape(recurrentToCellWeights, outputSize)); in prepare() 294 NN_RET_CHECK(checkWeightsShape(recurrentToOutputWeights, outputSize)); in prepare() 304 NN_RET_CHECK_EQ(SizeOfDimension(bias, 0), outputSize); in prepare() 321 NN_CHECK_EQ(SizeOfDimension(prevCellState, 1), outputSize); in prepare() 355 const int outputSize = SizeOfDimension(inputToInputWeights_, 0); in concatenateWeights() local 357 assignWeightsSubmatrix(inputToInputWeights_, 0 * outputSize, outputSize, weightsDims, weights); in concatenateWeights() [all …]
|
D | QLSTM.cpp | 78 const uint32_t outputSize = getSizeOfDimension(recurrentToOutputShape, 1); in prepare() local 100 NN_RET_CHECK_EQ(getSizeOfDimension(recurrentToInputShape, 1), outputSize); in prepare() 106 NN_RET_CHECK_EQ(getSizeOfDimension(recurrentToForgetShape, 1), outputSize); in prepare() 110 NN_RET_CHECK_EQ(getSizeOfDimension(recurrentToCellShape, 1), outputSize); in prepare() 172 NN_RET_CHECK_EQ(getSizeOfDimension(projectionShape, 0), outputSize); in prepare() 179 NN_RET_CHECK_EQ(getSizeOfDimension(projectionBiasShape, 0), outputSize); in prepare() 185 NN_RET_CHECK_EQ(getSizeOfDimension(outputStateShape, 1), outputSize); in prepare() 279 const uint32_t outputSize = recurrentToOutputWeightsShape.dimensions[1]; in execute() local 566 outputSize, numUnits, in execute() 570 cellToForgetBuffer, outputSize, cellStateBuffer, batchSize, in execute() [all …]
|
D | UnidirectionalSequenceLSTM.cpp | 107 const uint32_t outputSize = getSizeOfDimension(recurrentToOutputShape, 1); in prepare() local 129 NN_RET_CHECK_EQ(getSizeOfDimension(recurrentToInputShape, 1), outputSize); in prepare() 135 NN_RET_CHECK_EQ(getSizeOfDimension(recurrentToForgetShape, 1), outputSize); in prepare() 139 NN_RET_CHECK_EQ(getSizeOfDimension(recurrentToCellShape, 1), outputSize); in prepare() 201 NN_RET_CHECK_EQ(getSizeOfDimension(projectionShape, 0), outputSize); in prepare() 208 NN_RET_CHECK_EQ(getSizeOfDimension(projectionBiasShape, 0), outputSize); in prepare() 214 NN_RET_CHECK_EQ(getSizeOfDimension(outputStateShape, 1), outputSize); in prepare() 269 outputShape.dimensions[2] = outputSize; in prepare() 278 outputStateOutTensor.dimensions[1] = outputSize; in prepare()
|
D | MirrorPad.cpp | 176 void run(const EvalData<T>& evalData, const int outputSize) { in run() argument 180 for (int i = 0; i < outputSize; ++i) { in run() 217 const auto outputSize = getNumberOfElements(outputShape); in eval() local 225 NN_RET_CHECK(checkAsInt(outputSize)); \ in eval() 226 run(evalData, int(outputSize)); \ in eval()
|
D | LSTM.cpp | 438 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 …]
|
D | Slice.cpp | 48 [[maybe_unused]] const int outputSize = getNumberOfElements(outputShape); in evalGeneric() local
|
/packages/modules/Connectivity/nearby/tests/unit/src/com/android/server/nearby/util/encryption/ |
D | CryptorTest.java | 35 int outputSize = 16; in test_computeHkdf() local 36 byte[] res1 = Cryptor.computeHkdf(DATA, AUTHENTICITY_KEY, outputSize); in test_computeHkdf() 39 outputSize); in test_computeHkdf() 41 assertThat(res1).hasLength(outputSize); in test_computeHkdf() 42 assertThat(res2).hasLength(outputSize); in test_computeHkdf() 45 .isEqualTo(CryptorMicImp.computeHkdf(DATA, AUTHENTICITY_KEY, outputSize)); in test_computeHkdf()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
D | ImageFilterTinyPlanet.java | 79 int outputSize = (int) (w / 2f); in apply() local 90 if (outputSize != mBitmapOut.getHeight()) { in apply() 96 mBitmapOut = getEnvironment().getBitmap(outputSize, in apply() 97 outputSize, BitmapCache.TINY_PLANET); in apply() 100 outputSize /= 2; in apply() 105 outputSize, mParameters.getZoom() / 100f, mParameters.getAngle()); in apply()
|
/packages/modules/NeuralNetworks/runtime/test/ |
D | TestMemoryInternal.cpp | 162 constexpr size_t outputSize = offsetForActual + sizeof(Matrix3x4); in TEST_F() local 164 int outputFd = ASharedMemory_create("output", outputSize); in TEST_F() 168 CHECK_EQ(ftruncate(outputFd, outputSize), 0); in TEST_F() 172 (uint8_t*)mmap(nullptr, outputSize, PROT_READ | PROT_WRITE, MAP_SHARED, outputFd, 0); in TEST_F() 174 memset(outputData, 0, outputSize); in TEST_F() 175 WrapperMemory actual(outputSize, PROT_READ | PROT_WRITE, outputFd, 0); in TEST_F() 193 munmap(outputData, outputSize); in TEST_F()
|
D | TestValidateOperations.cpp | 4109 const uint32_t outputSize = 6; in unidirectionalSequenceLSTMTest() local 4113 uint32_t recurrentWeightsDims[2] = {numUnits, outputSize}; in unidirectionalSequenceLSTMTest() 4115 uint32_t projectionDims[2] = {outputSize, numUnits}; in unidirectionalSequenceLSTMTest() 4116 uint32_t projectionBiasDims[1] = {outputSize}; in unidirectionalSequenceLSTMTest() 4117 uint32_t outputStateDims[2] = {batchSize, outputSize}; in unidirectionalSequenceLSTMTest() 4120 uint32_t outputDims[3] = {maxTime, batchSize, outputSize}; in unidirectionalSequenceLSTMTest()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | GifTranscoder.java | 52 final long outputSize = new File(outFilePath).length(); in transcode() local 53 final float compression = (inputSize > 0) ? ((float) outputSize / inputSize) : 0; in transcode() 60 Formatter.formatShortFileSize(context, outputSize), in transcode()
|
/packages/modules/NeuralNetworks/runtime/test/fuzzing/operation_signatures/ |
D | Selection.cpp | 252 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()
|
/packages/apps/Camera2/src/com/android/camera/tinyplanet/ |
D | TinyPlanetFragment.java | 351 int outputSize = width / 2; in createFinalTinyPlanet() local 352 Bitmap resultBitmap = Bitmap.createBitmap(outputSize, outputSize, in createFinalTinyPlanet() 356 outputSize, mCurrentZoom, mCurrentAngle); in createFinalTinyPlanet() 365 return new TinyPlanetImage(addExif(jpeg.toByteArray()), outputSize); in createFinalTinyPlanet()
|
D | TinyPlanetNative.java | 40 public static native void process(Bitmap in, int width, int height, Bitmap out, int outputSize, in process() argument
|
/packages/modules/Permission/tests/cts/permissionui/AppThatAccessesCameraAndMic/src/android/permissionui/cts/appthataccessescameraandmic/ |
D | AccessCameraOrMicActivity.kt | 150 val outputSize: Size = config!!.getOutputSizes(outputFormat)[0] in onOpened() constant 154 ImageReader.newInstance(outputSize.width, outputSize.height, outputFormat, 2) in onOpened()
|
/packages/modules/NeuralNetworks/common/types/operations/include/ |
D | QuantizedLSTM.h | 89 void concatenateBiases(uint32_t outputSize, int32_t* bias);
|
/packages/modules/NeuralNetworks/tools/api/ |
D | types.spec | 5040 * and shape [outputSize, inputSize] specifying input-to-input part of 5046 * and shape [outputSize, inputSize] specifying input-to-forget part of 5052 * and shape [outputSize, inputSize] specifying input-to-cell part of 5058 * and shape [outputSize, inputSize] specifying input-to-output part of 5064 * and shape [outputSize, outputSize] specifying recurrent-to-input part 5070 * and shape [outputSize, outputSize] specifying recurrent-to-forget 5076 * and shape [outputSize, outputSize] specifying recurrent-to-cell part 5082 * and shape [outputSize, outputSize] specifying recurrent-to-output 5088 * [outputSize] specifying the bias for the fully-connected layer 5093 * [outputSize] specifying the bias for the fully-connected layer [all …]
|