Home
last modified time | relevance | path

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

/frameworks/ml/nn/common/operations/
DMaximumMinimum.cpp50 uint32_t bFlatIndex; in evalGeneric() local
51 NN_CHECK(bShapeIndexed.broadcastedIndexToFlatIndex(curIndex, &bFlatIndex)); in evalGeneric()
53 outputData[outputFlatIndex] = isMinimum ? std::min(aData[aFlatIndex], bData[bFlatIndex]) in evalGeneric()
54 : std::max(aData[aFlatIndex], bData[bFlatIndex]); in evalGeneric()
76 uint32_t bFlatIndex; in evalQuant8() local
77 NN_CHECK(bShapeIndexed.broadcastedIndexToFlatIndex(curIndex, &bFlatIndex)); in evalQuant8()
80 T bValue = requantize<T>(bData[bFlatIndex], bShape, outputShape); in evalQuant8()
DLogicalAndOr.cpp51 uint32_t bFlatIndex; in compute() local
52 NN_RET_CHECK(bShapeIndexed.broadcastedIndexToFlatIndex(curIndex, &bFlatIndex)); in compute()
54 outputData[outputFlatIndex] = func(aData[aFlatIndex], bData[bFlatIndex]); in compute()
DPRelu.cpp59 uint32_t bFlatIndex; in eval() local
60 NN_RET_CHECK(bShapeIndexed.broadcastedIndexToFlatIndex(curIndex, &bFlatIndex)); in eval()
62 outputData[outputFlatIndex] = func(aData[aFlatIndex], bData[bFlatIndex]); in eval()
DComparisons.cpp56 uint32_t bFlatIndex; in compute() local
57 NN_RET_CHECK(bShapeIndexed.broadcastedIndexToFlatIndex(curIndex, &bFlatIndex)); in compute()
62 const float realB = (bData[bFlatIndex] - bShape.offset) * bShape.scale; in compute()
65 outputData[outputFlatIndex] = func(aData[aFlatIndex], bData[bFlatIndex]); in compute()
DBroadcast.cpp222 uint32_t bFlatIndex; in executeInt32() local
223 NN_RET_CHECK(bShapeIndexed.broadcastedIndexToFlatIndex(curIndex, &bFlatIndex)); in executeInt32()
225 outputData[outputFlatIndex] = func(aData[aFlatIndex], bData[bFlatIndex]); in executeInt32()