Home
last modified time | relevance | path

Searched refs:aFlatIndex (Results 1 – 4 of 4) sorted by relevance

/frameworks/ml/nn/common/operations/
DMaximumMinimum.cpp42 uint32_t aFlatIndex; in evalGeneric() local
43 NN_CHECK(aShapeIndexed.broadcastedIndexToFlatIndex(curIndex, &aFlatIndex)); in evalGeneric()
47 outputData[outputFlatIndex] = isMinimum ? std::min(aData[aFlatIndex], bData[bFlatIndex]) in evalGeneric()
48 : std::max(aData[aFlatIndex], bData[bFlatIndex]); in evalGeneric()
68 uint32_t aFlatIndex; in evalQuant8() local
69 NN_CHECK(aShapeIndexed.broadcastedIndexToFlatIndex(curIndex, &aFlatIndex)); in evalQuant8()
73 uint8_t aValue = requantize(aData[aFlatIndex], aShape, outputShape); in evalQuant8()
DLogicalAndOr.cpp47 uint32_t aFlatIndex; in compute() local
48 NN_RET_CHECK(aShapeIndexed.broadcastedIndexToFlatIndex(curIndex, &aFlatIndex)); in compute()
52 outputData[outputFlatIndex] = func(aData[aFlatIndex], bData[bFlatIndex]); in compute()
DPRelu.cpp51 uint32_t aFlatIndex; in eval() local
52 NN_RET_CHECK(aShapeIndexed.broadcastedIndexToFlatIndex(curIndex, &aFlatIndex)); in eval()
56 outputData[outputFlatIndex] = func(aData[aFlatIndex], bData[bFlatIndex]); in eval()
DComparisons.cpp49 uint32_t aFlatIndex; in compute() local
50 NN_RET_CHECK(aShapeIndexed.broadcastedIndexToFlatIndex(curIndex, &aFlatIndex)); in compute()
55 const float realA = (aData[aFlatIndex] - aShape.offset) * aShape.scale; in compute()
59 outputData[outputFlatIndex] = func(aData[aFlatIndex], bData[bFlatIndex]); in compute()