Home
last modified time | relevance | path

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

/frameworks/ml/nn/common/operations/
DMaximumMinimum.cpp48 uint32_t aFlatIndex; in evalGeneric() local
49 NN_CHECK(aShapeIndexed.broadcastedIndexToFlatIndex(curIndex, &aFlatIndex)); in evalGeneric()
53 outputData[outputFlatIndex] = isMinimum ? std::min(aData[aFlatIndex], bData[bFlatIndex]) in evalGeneric()
54 : std::max(aData[aFlatIndex], bData[bFlatIndex]); in evalGeneric()
74 uint32_t aFlatIndex; in evalQuant8() local
75 NN_CHECK(aShapeIndexed.broadcastedIndexToFlatIndex(curIndex, &aFlatIndex)); in evalQuant8()
79 T aValue = requantize<T>(aData[aFlatIndex], aShape, outputShape); in evalQuant8()
DLogicalAndOr.cpp49 uint32_t aFlatIndex; in compute() local
50 NN_RET_CHECK(aShapeIndexed.broadcastedIndexToFlatIndex(curIndex, &aFlatIndex)); in compute()
54 outputData[outputFlatIndex] = func(aData[aFlatIndex], bData[bFlatIndex]); in compute()
DPRelu.cpp57 uint32_t aFlatIndex; in eval() local
58 NN_RET_CHECK(aShapeIndexed.broadcastedIndexToFlatIndex(curIndex, &aFlatIndex)); in eval()
62 outputData[outputFlatIndex] = func(aData[aFlatIndex], bData[bFlatIndex]); in eval()
DComparisons.cpp54 uint32_t aFlatIndex; in compute() local
55 NN_RET_CHECK(aShapeIndexed.broadcastedIndexToFlatIndex(curIndex, &aFlatIndex)); in compute()
61 const float realA = (aData[aFlatIndex] - aShape.offset) * aShape.scale; in compute()
65 outputData[outputFlatIndex] = func(aData[aFlatIndex], bData[bFlatIndex]); in compute()
DBroadcast.cpp220 uint32_t aFlatIndex; in executeInt32() local
221 NN_RET_CHECK(aShapeIndexed.broadcastedIndexToFlatIndex(curIndex, &aFlatIndex)); in executeInt32()
225 outputData[outputFlatIndex] = func(aData[aFlatIndex], bData[bFlatIndex]); in executeInt32()