Home
last modified time | relevance | path

Searched refs:numInputDims (Results 1 – 5 of 5) sorted by relevance

/frameworks/ml/nn/common/operations/
DStridedSlice.cpp64 int32_t numInputDims = static_cast<int32_t>(getNumberOfDimensions(inputShape)); in compute() local
65 for (int32_t idx = numInputDims - 1; idx >= 0; --idx) { in compute()
71 for (int i = numInputDims; i < kMaxDim; i++) { in compute()
77 beginMask = ReverseMaskBits(beginMask, numInputDims); in compute()
78 endMask = ReverseMaskBits(endMask, numInputDims); in compute()
79 shrinkAxisMask = ReverseMaskBits(shrinkAxisMask, numInputDims); in compute()
141 uint32_t numInputDims = getNumberOfDimensions(inputShape); in prepare() local
142 NN_OPS_CHECK(numInputDims <= 4); in prepare()
152 NN_OPS_CHECK(getSizeOfDimension(beginShape, 0) == numInputDims); in prepare()
153 NN_OPS_CHECK(getSizeOfDimension(endShape, 0) == numInputDims); in prepare()
[all …]
DSqueeze.cpp80 int32_t numInputDims = static_cast<int32_t>(getNumberOfDimensions(inputShape)); in prepare() local
88 std::vector<bool> shouldSqueeze(numInputDims, false); in prepare()
93 for (int32_t idx = 0; idx < numInputDims; ++idx) { in prepare()
103 squeezeDims[idx] < 0 ? squeezeDims[idx] + numInputDims : squeezeDims[idx]; in prepare()
104 NN_OPS_CHECK(current >= 0 && current < numInputDims && in prepare()
112 std::vector<uint32_t> outDims(numInputDims - numDimsSqueezed); in prepare()
113 if (numInputDims == numDimsSqueezed) { in prepare()
117 for (int32_t inIdx = 0, outIdx = 0; inIdx < numInputDims; ++inIdx) { in prepare()
DTranspose.cpp104 uint32_t numInputDims = getNumberOfDimensions(input); in prepare() local
112 NN_RET_CHECK_EQ(numInputDims, 2); in prepare()
119 NN_RET_CHECK_LE(numInputDims, 4); in prepare()
124 NN_RET_CHECK_EQ(numInputDims, getSizeOfDimension(permShape, 0)); in prepare()
126 std::vector<uint32_t> outDims(numInputDims); in prepare()
127 for (int32_t idx = 0; idx < static_cast<int32_t>(numInputDims); ++idx) { in prepare()
128 NN_RET_CHECK(permData[idx] >= 0 && permData[idx] < static_cast<int32_t>(numInputDims)); in prepare()
DReshape.cpp94 int32_t numInputDims = static_cast<int32_t>(getNumberOfDimensions(inputShape)); in padGeneric() local
95 NN_OPS_CHECK(numInputDims <= 4); in padGeneric()
96 std::vector<int> leftPaddings(4 - numInputDims, 0); in padGeneric()
97 std::vector<int> rightPaddings(4 - numInputDims, 0); in padGeneric()
98 for (int32_t i = 0; i < numInputDims; ++i) { in padGeneric()
/frameworks/ml/nn/common/
DOperationsUtils.cpp505 uint32_t numInputDims = getNumberOfDimensions(input); in padPrepare() local
510 NN_OPS_CHECK(getSizeOfDimension(paddingsShape, 0) == numInputDims); in padPrepare()
513 std::vector<uint32_t> outDims(numInputDims); in padPrepare()
514 for (uint32_t i = 0; i < numInputDims; ++i) { in padPrepare()
600 int32_t numInputDims = static_cast<int32_t>(getNumberOfDimensions(input)); in meanPrepare() local
605 std::vector<uint32_t> outDims(numInputDims); in meanPrepare()
606 for (int32_t idx = 0; idx < numInputDims; ++idx) { in meanPrepare()
609 if (axisData[axisIdx] == idx || axisData[axisIdx] + numInputDims == idx) { in meanPrepare()
627 current += numInputDims; in meanPrepare()
629 NN_OPS_CHECK(current >= 0 && current < numInputDims); in meanPrepare()
[all …]