Home
last modified time | relevance | path

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

/frameworks/ml/nn/common/operations/
DMaximumMinimum.cpp44 uint32_t bFlatIndex; in evalGeneric() local
45 NN_CHECK(bShapeIndexed.broadcastedIndexToFlatIndex(curIndex, &bFlatIndex)); in evalGeneric()
47 outputData[outputFlatIndex] = isMinimum ? std::min(aData[aFlatIndex], bData[bFlatIndex]) in evalGeneric()
48 : std::max(aData[aFlatIndex], bData[bFlatIndex]); in evalGeneric()
70 uint32_t bFlatIndex; in evalQuant8() local
71 NN_CHECK(bShapeIndexed.broadcastedIndexToFlatIndex(curIndex, &bFlatIndex)); in evalQuant8()
74 uint8_t bValue = requantize(bData[bFlatIndex], bShape, outputShape); in evalQuant8()
DLogicalAndOr.cpp49 uint32_t bFlatIndex; in compute() local
50 NN_RET_CHECK(bShapeIndexed.broadcastedIndexToFlatIndex(curIndex, &bFlatIndex)); in compute()
52 outputData[outputFlatIndex] = func(aData[aFlatIndex], bData[bFlatIndex]); in compute()
DPRelu.cpp53 uint32_t bFlatIndex; in eval() local
54 NN_RET_CHECK(bShapeIndexed.broadcastedIndexToFlatIndex(curIndex, &bFlatIndex)); in eval()
56 outputData[outputFlatIndex] = func(aData[aFlatIndex], bData[bFlatIndex]); in eval()
DComparisons.cpp51 uint32_t bFlatIndex; in compute() local
52 NN_RET_CHECK(bShapeIndexed.broadcastedIndexToFlatIndex(curIndex, &bFlatIndex)); in compute()
56 const float realB = (bData[bFlatIndex] - bShape.offset) * bShape.scale; in compute()
59 outputData[outputFlatIndex] = func(aData[aFlatIndex], bData[bFlatIndex]); in compute()