/frameworks/ml/nn/common/operations/ |
D | UnidirectionalSequenceLSTM.cpp | 198 const uint32_t inputRank = getNumberOfDimensions(inputShape); in prepare() 206 NN_RET_CHECK_EQ(getNumberOfDimensions(inputToOutputShape), 2); in prepare() 211 NN_RET_CHECK_EQ(getNumberOfDimensions(recurrentToOutputShape), 2); in prepare() 217 NN_RET_CHECK_EQ(getNumberOfDimensions(inputToInputShape), 2); in prepare() 223 NN_RET_CHECK_EQ(getNumberOfDimensions(inputToForgetShape), 2); in prepare() 227 NN_RET_CHECK_EQ(getNumberOfDimensions(inputToCellShape), 2); in prepare() 233 NN_RET_CHECK_EQ(getNumberOfDimensions(recurrentToInputShape), 2); in prepare() 239 NN_RET_CHECK_EQ(getNumberOfDimensions(recurrentToForgetShape), 2); in prepare() 243 NN_RET_CHECK_EQ(getNumberOfDimensions(recurrentToCellShape), 2); in prepare() 257 NN_RET_CHECK_EQ(getNumberOfDimensions(cellToInputShape), 1); in prepare() [all …]
|
D | QLSTM.cpp | 179 const uint32_t inputRank = getNumberOfDimensions(inputShape); in prepare() 186 NN_RET_CHECK_EQ(getNumberOfDimensions(inputToOutputShape), 2); in prepare() 191 NN_RET_CHECK_EQ(getNumberOfDimensions(recurrentToOutputShape), 2); in prepare() 197 NN_RET_CHECK_EQ(getNumberOfDimensions(inputToInputShape), 2); in prepare() 203 NN_RET_CHECK_EQ(getNumberOfDimensions(inputToForgetShape), 2); in prepare() 207 NN_RET_CHECK_EQ(getNumberOfDimensions(inputToCellShape), 2); in prepare() 213 NN_RET_CHECK_EQ(getNumberOfDimensions(recurrentToInputShape), 2); in prepare() 219 NN_RET_CHECK_EQ(getNumberOfDimensions(recurrentToForgetShape), 2); in prepare() 223 NN_RET_CHECK_EQ(getNumberOfDimensions(recurrentToCellShape), 2); in prepare() 237 NN_RET_CHECK_EQ(getNumberOfDimensions(cellToInputShape), 1); in prepare() [all …]
|
D | BidirectionalSequenceRNN.cpp | 394 NN_RET_CHECK_EQ(getNumberOfDimensions(input), 3); in prepare() 395 NN_RET_CHECK_EQ(getNumberOfDimensions(fwWeights), 2); in prepare() 396 NN_RET_CHECK_EQ(getNumberOfDimensions(fwRecurrentWeights), 2); in prepare() 397 NN_RET_CHECK_EQ(getNumberOfDimensions(fwBias), 1); in prepare() 398 NN_RET_CHECK_EQ(getNumberOfDimensions(fwHiddenState), 2); in prepare() 399 NN_RET_CHECK_EQ(getNumberOfDimensions(bwWeights), 2); in prepare() 400 NN_RET_CHECK_EQ(getNumberOfDimensions(bwRecurrentWeights), 2); in prepare() 401 NN_RET_CHECK_EQ(getNumberOfDimensions(bwBias), 1); in prepare() 402 NN_RET_CHECK_EQ(getNumberOfDimensions(bwHiddenState), 2); in prepare() 421 NN_RET_CHECK_EQ(getNumberOfDimensions(auxInput), 3); in prepare() [all …]
|
D | StridedSlice.cpp | 64 int32_t numInputDims = static_cast<int32_t>(getNumberOfDimensions(inputShape)); in compute() 133 NN_RET_CHECK_LE(getNumberOfDimensions(input), 4); in validate() 141 uint32_t numInputDims = getNumberOfDimensions(inputShape); in prepare() 148 NN_OPS_CHECK(getNumberOfDimensions(beginShape) == 1); in prepare() 149 NN_OPS_CHECK(getNumberOfDimensions(endShape) == 1); in prepare() 150 NN_OPS_CHECK(getNumberOfDimensions(stridesShape) == 1); in prepare()
|
D | Squeeze.cpp | 67 NN_RET_CHECK_LE(getNumberOfDimensions(input), 4); in validate() 80 int32_t numInputDims = static_cast<int32_t>(getNumberOfDimensions(inputShape)); in prepare() 82 NN_RET_CHECK_LE(getNumberOfDimensions(inputShape), 4); in prepare() 86 NN_OPS_CHECK(getNumberOfDimensions(squeezeDimsShape) == 1); in prepare()
|
D | L2Normalization.cpp | 54 getNumberOfElements(inputShape, axis + 1, getNumberOfDimensions(inputShape)); in l2normFloat32Impl() 81 getNumberOfElements(inputShape, axis + 1, getNumberOfDimensions(inputShape)); in l2normQuant8Impl() 113 getNumberOfElements(inputShape, axis + 1, getNumberOfDimensions(inputShape)); in l2normQuant8SignedImpl() 140 int32_t ndim = getNumberOfDimensions(inputShape); in l2normFloat32() 169 int32_t ndim = getNumberOfDimensions(inputShape); in l2normQuant8() 185 int32_t ndim = getNumberOfDimensions(inputShape); in l2normQuant8Signed() 226 NN_RET_CHECK_LE(getNumberOfDimensions(input), 4); in validate() 234 int32_t numDimensions = getNumberOfDimensions(input); in prepare()
|
D | SimpleMath.cpp | 52 int32_t* scratchBuffer = new int32_t[getNumberOfDimensions(inputShape)]; in meanGeneric() 67 getNumberOfDimensions(inputShape), outputData, in meanGeneric() 69 getNumberOfDimensions(outputShape), axis, axisSize, keepDims, scratchBuffer, in meanGeneric()
|
D | Slice.cpp | 58 std::vector<uint32_t> outputIndex(getNumberOfDimensions(outputShape), 0); in evalGeneric() 60 std::vector<uint32_t> inputIndex(getNumberOfDimensions(inputShape)); in evalGeneric() 107 const int32_t n_dims = getNumberOfDimensions(inputShape); in prepare() 111 NN_RET_CHECK_EQ(getNumberOfDimensions(beginShape), 1); in prepare() 115 NN_RET_CHECK_EQ(getNumberOfDimensions(sizeShape), 1); in prepare()
|
D | Reduce.cpp | 56 const uint32_t inputRank = getNumberOfDimensions(inputShape); in compute() 84 NN_RET_CHECK_LE(getNumberOfDimensions(input), 4); in validateProdSum() 107 NN_RET_CHECK_LE(getNumberOfDimensions(input), 4); in validateMaxMin() 123 NN_RET_CHECK_LE(getNumberOfDimensions(input), 4); in validateLogical() 130 const uint32_t inputRank = getNumberOfDimensions(inputShape); in prepare() 136 NN_RET_CHECK_EQ(getNumberOfDimensions(axesShape), 1u); in prepare()
|
D | UnidirectionalSequenceRNN.cpp | 169 NN_RET_CHECK_EQ(getNumberOfDimensions(input), 3); in prepare() 170 NN_RET_CHECK_EQ(getNumberOfDimensions(weights), 2); in prepare() 171 NN_RET_CHECK_EQ(getNumberOfDimensions(recurrentWeights), 2); in prepare() 172 NN_RET_CHECK_EQ(getNumberOfDimensions(bias), 1); in prepare() 173 NN_RET_CHECK_EQ(getNumberOfDimensions(hiddenState), 2); in prepare()
|
D | Concatenation.cpp | 61 getNumberOfDimensions(outputShape) - axis - 1, inputDataPtrs.data(), in concatenation() 86 getNumberOfDimensions(outputShape) - axis - 1, inputDataPtrs.data(), in concatenation() 167 const uint32_t inputRank = getNumberOfDimensions(context->getInputShape(i)); in validate() 180 uint32_t numDimensions = getNumberOfDimensions(input0); in prepare() 189 NN_RET_CHECK_EQ(getNumberOfDimensions(input), numDimensions); in prepare()
|
D | Softmax.cpp | 57 getNumberOfElements(inputShape, axis + 1, getNumberOfDimensions(inputShape)); in softmaxSlowFloat32() 85 int32_t ndim = getNumberOfDimensions(inputShape); in softmaxFloat32() 132 getNumberOfElements(inputShape, axis + 1, getNumberOfDimensions(inputShape)); in softmaxQuant8Impl() 203 int32_t ndim = getNumberOfDimensions(inputShape); in softmaxQuant8() 250 const auto inputRank = getNumberOfDimensions(context->getInputShape(kInputTensor)); in validate() 271 NN_RET_CHECK_LE(getNumberOfDimensions(input), 4); in prepare()
|
D | LocalResponseNormalization.cpp | 58 getNumberOfElements(inputShape, axis + 1, getNumberOfDimensions(inputShape)); in localResponseNormFloat32Impl() 88 int32_t ndim = getNumberOfDimensions(inputShape); in localResponseNorm() 171 NN_RET_CHECK_LE(getNumberOfDimensions(input), 4); in validate() 179 int32_t numDimensions = getNumberOfDimensions(input); in prepare()
|
D | Gather.cpp | 48 getNumberOfElements(inputShape, axis + 1, getNumberOfDimensions(inputShape)); in eval() 93 output.dimensions.reserve(getNumberOfDimensions(input) + getNumberOfDimensions(indices) - 1); in prepare()
|
D | Transpose.cpp | 92 NN_RET_CHECK_LE(getNumberOfDimensions(input), 4); in validate() 104 uint32_t numInputDims = getNumberOfDimensions(input); in prepare() 123 NN_RET_CHECK_EQ(getNumberOfDimensions(permShape), 1); in prepare()
|
D | Dequantize.cpp | 57 for (int i = getNumberOfDimensions(inputShape) - 1; i > channelDim; --i) { in computePerChannel() 88 NN_RET_CHECK_LE(getNumberOfDimensions(input), 4); in validate() 109 NN_RET_CHECK_LE(getNumberOfDimensions(input), 4); in prepare()
|
D | FullyConnected.cpp | 196 NN_RET_CHECK_GE(getNumberOfDimensions(input), 2); in validateShapes() 197 NN_RET_CHECK_LE(getNumberOfDimensions(input), 4); in validateShapes() 198 NN_RET_CHECK_EQ(getNumberOfDimensions(weights), 2); in validateShapes() 199 NN_RET_CHECK_EQ(getNumberOfDimensions(bias), 1); in validateShapes()
|
D | ChannelShuffle.cpp | 46 getNumberOfElements(inputShape, axis + 1, getNumberOfDimensions(inputShape)); in eval() 74 NN_RET_CHECK_LE(getNumberOfDimensions(inputShape), 4); in validate()
|
D | ExpandDims.cpp | 28 NN_CHECK(handleNegativeAxis(getNumberOfDimensions(input) + 1, &axis)); in prepare()
|
D | Elementwise.cpp | 126 NN_RET_CHECK_LE(getNumberOfDimensions(input), 4); in validateFloor() 144 NN_RET_CHECK_LE(getNumberOfDimensions(input), 4); in prepareFloor()
|
D | Rank.cpp | 60 getNumberOfDimensions(context->getInputShape(kInputTensor)); in execute()
|
/frameworks/ml/nn/common/ |
D | OperationsUtils.cpp | 156 uint32_t getNumberOfDimensions(const Shape& shape) { in getNumberOfDimensions() function 343 uint32_t numberOfDims1 = getNumberOfDimensions(in1); in calculateBroadcastedShape() 344 uint32_t numberOfDims2 = getNumberOfDimensions(in2); in calculateBroadcastedShape() 423 NN_OPS_CHECK(getNumberOfDimensions(input) == 4); in depthToSpacePrepare() 442 NN_OPS_CHECK(getNumberOfDimensions(input) == 4); in spaceToDepthPrepare() 463 NN_OPS_CHECK(getNumberOfDimensions(valueShape) >= 2); in embeddingLookupPrepare() 464 NN_OPS_CHECK(getNumberOfDimensions(lookupShape) == 1); in embeddingLookupPrepare() 471 for (uint32_t i = 2; i < getNumberOfDimensions(valueShape); i++) { in embeddingLookupPrepare() 482 NN_OPS_CHECK(getNumberOfDimensions(lookupShape) == 1); in hashtableLookupPrepare() 483 NN_OPS_CHECK(getNumberOfDimensions(keyShape) == 1); in hashtableLookupPrepare() [all …]
|
/frameworks/ml/nn/common/include/ |
D | CpuOperationUtils.h | 119 NN_RET_CHECK_EQ(getNumberOfDimensions(nchwShape), 4) in convertNchwToNhwc() 140 NN_RET_CHECK_EQ(getNumberOfDimensions(nhwcShape), 4) in convertNhwcToNchw() 186 NN_RET_CHECK_EQ(getNumberOfDimensions(shape), 4); in initialize()
|
D | OperationsUtils.h | 151 uint32_t getNumberOfDimensions(const Shape& shape); 161 return handleNegativeAxis(getNumberOfDimensions(shape), axis); in handleNegativeAxis() 343 const int numDims = getNumberOfDimensions(shape); in transposeFirstTwoDimensions() 364 NN_RET_CHECK(getNumberOfDimensions(shape) >= 2); in transposeFirstTwoDimensions()
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
D | NativeFrame.java | 170 if (getFormat().getNumberOfDimensions() != 2) { in setBitmap() 187 if (getFormat().getNumberOfDimensions() != 2) { in getBitmap()
|