Home
last modified time | relevance | path

Searched refs:outputData (Results 1 – 25 of 56) sorted by relevance

123

/frameworks/ml/nn/common/operations/
DReshape.cpp34 bool copyData(const void* inputData, const Shape& inputShape, void* outputData, in copyData() argument
38 memcpy(outputData, inputData, count); in copyData()
44 T* outputData, const Shape& outputShape) { in depthToSpaceGeneric() argument
47 outputData, convertShapeToDims(outputShape)); in depthToSpaceGeneric()
51 int32_t blockSize, float* outputData,
54 int32_t blockSize, _Float16* outputData,
57 int32_t blockSize, uint8_t* outputData,
60 int32_t blockSize, int8_t* outputData,
65 T* outputData, const Shape& outputShape) { in spaceToDepthGeneric() argument
68 outputData, convertShapeToDims(outputShape)); in spaceToDepthGeneric()
[all …]
DActivation.cpp52 bool reluFloat(const T* inputData, const Shape& inputShape, T* outputData, const Shape& outputShape, in reluFloat() argument
56 for (int i = 0; i < numElements; i++, inputData++, outputData++) { in reluFloat()
57 *outputData = static_cast<T>( in reluFloat()
62 template bool reluFloat<float>(const float* inputData, const Shape& inputShape, float* outputData,
65 _Float16* outputData, const Shape& outputShape, float reluMin,
69 bool relu1Float(const T* inputData, const Shape& inputShape, T* outputData, in relu1Float() argument
71 return reluFloat(inputData, inputShape, outputData, outputShape, -1.f, 1.f); in relu1Float()
73 template bool relu1Float<float>(const float* inputData, const Shape& inputShape, float* outputData,
76 _Float16* outputData, const Shape& outputShape);
79 bool relu6Float(const T* inputData, const Shape& inputShape, T* outputData, in relu6Float() argument
[all …]
DPooling.cpp140 float* outputData, const Shape& outputShape) { in averagePoolNhwc() argument
145 convertShapeToTflshape(outputShape), outputData); in averagePoolNhwc()
150 _Float16* outputData, const Shape& outputShape) { in averagePoolNhwc() argument
158 convertFloat32ToFloat16(outputDataFloat32, outputData); in averagePoolNhwc()
163 uint8_t* outputData, const Shape& outputShape) { in averagePoolNhwc() argument
168 convertShapeToTflshape(outputShape), outputData); in averagePoolNhwc()
173 int8_t* outputData, const Shape& outputShape) { in averagePoolNhwc() argument
181 outputData); in averagePoolNhwc()
186 float* outputData, const Shape& outputShape) { in l2PoolNhwc() argument
191 convertShapeToTflshape(outputShape), outputData); in l2PoolNhwc()
[all …]
DSimpleMath.cpp34 const Shape& axisShape, bool keepDims, _Float16* outputData, in meanFloat16() argument
43 convertFloat32ToFloat16(outputDataFloat32, outputData); in meanFloat16()
49 bool keepDims, T* outputData, const Shape& outputShape) { in meanGeneric() argument
67 getNumberOfDimensions(inputShape), outputData, in meanGeneric()
79 float* outputData, const Shape& outputShape);
82 bool keepDims, uint8_t* outputData,
86 bool keepDims, int8_t* outputData,
DL2Normalization.cpp48 float* outputData, const Shape& outputShape) { in l2normFloat32Impl() argument
58 float* outputBeg = outputData + outer * axisSize * innerSize; in l2normFloat32Impl()
76 uint8_t* outputData, const Shape& outputShape) { in l2normQuant8Impl() argument
85 uint8_t* outputBeg = outputData + outer * axisSize * innerSize; in l2normQuant8Impl()
108 int8_t* outputData, const Shape& outputShape) { in l2normQuant8SignedImpl() argument
117 int8_t* outputBeg = outputData + outer * axisSize * innerSize; in l2normQuant8SignedImpl()
138 bool l2normFloat32(const float* inputData, const Shape& inputShape, int32_t axis, float* outputData, in l2normFloat32() argument
147 convertShapeToTflshape(outputShape), outputData); in l2normFloat32()
150 return l2normFloat32Impl(inputData, inputShape, axis, outputData, outputShape); in l2normFloat32()
155 _Float16* outputData, const Shape& outputShape) { in l2normFloat16() argument
[all …]
DPow.cpp36 const Shape& exponentShape, T* outputData, const Shape& outputShape) { in evalGeneric() argument
51 outputData[outputFlatIndex] = std::pow(static_cast<float>(baseData[baseFlatIndex]), in evalGeneric()
71 const Shape& exponentShape, void* outputData, const Shape& outputShape) { in eval() argument
76 reinterpret_cast<_Float16*>(outputData), outputShape); in eval()
81 reinterpret_cast<float*>(outputData), outputShape); in eval()
DCast.cpp47 bool copyToTensor(const FromT* inputData, int numElements, uint8_t* outputData, in copyToTensor() argument
52 copyCast(inputData, reinterpret_cast<dataType*>(outputData), numElements); \ in copyToTensor()
75 bool eval(const uint8_t* inputData, const Shape& inputShape, uint8_t* outputData, in eval() argument
83 copyToTensor(reinterpret_cast<const dataType*>(inputData), numElements, outputData, \ in eval()
95 return copyData(inputData, inputShape, outputData, outputShape); in eval()
DArgMinMax.cpp34 Out* outputData, const Shape& outputShape) { in argMinMaxImpl() argument
50 outputData[outer * innerSize + inner] = minMaxIndex; in argMinMaxImpl()
56 uint8_t* outputData, const Shape& outputShape) { in argMinMaxGeneric() argument
64 reinterpret_cast<int32_t*>(outputData), outputShape); \ in argMinMaxGeneric()
DLocalResponseNormalization.cpp52 int32_t axis, float* outputData, in localResponseNormFloat32Impl() argument
61 float* outputBase = outputData + outer * axisSize * innerSize; in localResponseNormFloat32Impl()
82 T beta, int32_t axis, T* outputData, const Shape& outputShape);
86 float bias, float alpha, float beta, int32_t axis, float* outputData, in localResponseNorm() argument
97 convertShapeToTflshape(outputShape), outputData); in localResponseNorm()
101 outputData, outputShape); in localResponseNorm()
108 _Float16* outputData, const Shape& outputShape) { in localResponseNorm() argument
116 convertFloat32ToFloat16(outputDataFloat32, outputData); in localResponseNorm()
DSoftmax.cpp52 int32_t axis, float* outputData, const Shape& outputShape) { in softmaxSlowFloat32() argument
61 float* outputBeg = outputData + outer * axisSize * innerSize; in softmaxSlowFloat32()
84 float* outputData, const Shape& outputShape) { in softmaxFloat32() argument
92 convertShapeToTflshape(outputShape), outputData); in softmaxFloat32()
95 return softmaxSlowFloat32(inputData, inputShape, beta, axis, outputData, outputShape); in softmaxFloat32()
100 int32_t axis, _Float16* outputData, const Shape& outputShape) { in softmaxFloat16() argument
108 convertFloat32ToFloat16(outputData_float32, outputData); in softmaxFloat16()
116 T* outputData, const Shape& outputShape) { in softmaxQuant8Impl() argument
136 T* outputBeg = outputData + outer * axisSize * innerSize; in softmaxQuant8Impl()
202 T* outputData, const Shape& outputShape) { in softmaxQuant8() argument
[all …]
DRNN.cpp123 const int32_t activation, T* outputData) { in RNNStep() argument
132 /*outputBatchStride=*/numUnits, /*outputBatchOffset=*/0, outputData); in RNNStep()
145 const uint32_t outputBatchStride, const uint32_t outputBatchOffset, T* outputData, in RNNStep() argument
172 T* output_ptr_batch = outputData + b * outputBatchStride + outputBatchOffset; in RNNStep()
232 _Float16* outputData);
241 const uint32_t outputBatchOffset, _Float16* outputData,
248 float* outputData);
257 float* outputData, float* hiddenStateOutput);
DGroupedConv2D.cpp50 int32_t numGroups, int32_t activation, float* outputData, in groupedConvFloat32() argument
59 float* outPtr = outputData; in groupedConvFloat32()
108 int32_t numGroups, int32_t activation, T* outputData, in groupedConvQuant8() argument
131 T* outPtr = outputData; in groupedConvQuant8()
187 int32_t numGroups, int32_t activation, int8_t* outputData,
196 int32_t numGroups, int32_t activation, uint8_t* outputData,
206 int32_t activation, T* outputData, const Shape& outputShape) { in groupedConvQuant8PerChannel() argument
235 T* outPtr = outputData; in groupedConvQuant8PerChannel()
290 int32_t activation, _Float16* outputData, const Shape& outputShape) { in groupedConvFloat16() argument
306 convertFloat32ToFloat16(outputData_float32, outputData); in groupedConvFloat16()
[all …]
DFullyConnected.cpp58 float* outputData, const Shape& outputShape) { in fullyConnectedFloat32() argument
73 outputData, convertShapeToDims(outputShape)); in fullyConnectedFloat32()
80 outputData, convertShapeToDims(outputShape)); in fullyConnectedFloat32()
88 _Float16* outputData, const Shape& outputShape) { in fullyConnectedFloat16() argument
101 convertFloat32ToFloat16(outputDataFloat32, outputData); in fullyConnectedFloat16()
109 uint8_t* outputData, const Shape& outputShape) { in fullyConnectedQuant8() argument
141 outputActivationMin, outputActivationMax, outputData, in fullyConnectedQuant8()
150 int8_t* outputData, const Shape& outputShape) { in fullyConnectedQuant8() argument
178 biasData, convertShapeToTflshape(outputShape), outputData); in fullyConnectedQuant8()
DTile.cpp71 void tileImpl(const T* inputData, const Shape& inputShape, const int32_t* multiples, T* outputData, in tileImpl() argument
73 TileOneDimension(inputShape, inputData, multiples, outputData, 0); in tileImpl()
93 uint8_t* outputData, const Shape& outputShape) { in eval() argument
99 reinterpret_cast<dataType*>(outputData), outputShape); \ in eval()
DResizeImageOps.cpp67 bool halfPixelCenters, T* outputData, const Shape& outputShape) { in resizeNearestNeighbor() argument
99 outputData + b * outHeight * outWidth * channels + in resizeNearestNeighbor()
110 bool alignCorners, bool halfPixelCenters, T* outputData, in resizeImageOpNhwc() argument
125 outDimData, convertShapeToTflshape(outputShape), outputData); in resizeImageOpNhwc()
129 resizeNearestNeighbor(inputData, inputShape, alignCorners, halfPixelCenters, outputData, in resizeImageOpNhwc()
138 _Float16* outputData, const Shape& outputShape) { in resizeImageOpNhwc() argument
145 convertFloat32ToFloat16(outputData_float32, outputData); in resizeImageOpNhwc()
151 bool alignCorners, bool halfPixelCenters, T* outputData, in resizeImageOp() argument
156 NN_RET_CHECK(output.initialize(outputData, outputShape)); in resizeImageOp()
DQuantize.cpp43 bool quantizeToQuant8(const T* inputData, uint8_t* outputData, const Shape& outputShape) { in quantizeToQuant8() argument
47 outputData[i] = static_cast<uint8_t>(std::max<float>( in quantizeToQuant8()
55 bool quantizeToQuant8Signed(const T* inputData, int8_t* outputData, const Shape& outputShape) { in quantizeToQuant8Signed() argument
59 outputData[i] = static_cast<int8_t>(std::max<float>( in quantizeToQuant8Signed()
DMaximumMinimum.cpp38 bool isMinimum, T* outputData, const Shape& outputShape) { in evalGeneric() argument
53 outputData[outputFlatIndex] = isMinimum ? std::min(aData[aFlatIndex], bData[bFlatIndex]) in evalGeneric()
64 bool isMinimum, T* outputData, const Shape& outputShape) { in evalQuant8() argument
81 outputData[outputFlatIndex] = in evalQuant8()
DTransposeConv2D.cpp127 const TransposeConv2dParam& param, float* outputData, in transposeConvNhwc() argument
135 memset(outputData, 0, getNumberOfElements(outputShape) * sizeof(float)); in transposeConvNhwc()
138 float* outputBase = outputData; in transposeConvNhwc()
170 float* outPtr = outputData; in transposeConvNhwc()
184 const TransposeConv2dParam& param, T* outputData, const Shape& outputShape) { in transposeConvNhwc() argument
262 T* outPtr = outputData; in transposeConvNhwc()
279 const TransposeConv2dParam& param, _Float16* outputData, in transposeConvNhwc() argument
294 convertFloat32ToFloat16(outputData_float32, outputData); in transposeConvNhwc()
302 const TransposeConv2dParam& param, T_Input* outputData, in transposeConv() argument
307 NN_RET_CHECK(output.initialize(outputData, outputShape)); in transposeConv()
[all …]
DExpandDims.cpp40 bool eval(const uint8_t* inputData, const Shape& inputShape, int32_t axis, uint8_t* outputData, in eval() argument
42 memcpy(outputData, inputData, in eval()
DRoiPooling.cpp57 T_Input* outputData, const Shape& outputShape) { in roiPoolingNhwc() argument
73 T_Input* outPtr = outputData; in roiPoolingNhwc()
146 bool useNchw, T_Input* outputData, const Shape& outputShape) { in roiPooling() argument
150 NN_RET_CHECK(output.initialize(outputData, outputShape)); in roiPooling()
163 float widthStride, bool useNchw, uint8_t* outputData, in roiPooling() argument
168 batchSplitShape, heightStride, widthStride, useNchw, outputData, in roiPooling()
178 float widthStride, bool useNchw, int8_t* outputData, in roiPooling() argument
183 batchSplitShape, heightStride, widthStride, useNchw, outputData, in roiPooling()
DDequantize.cpp39 bool compute(const InputType* inputData, const Shape& inputShape, OutputType* outputData) { in compute() argument
45 outputData[i] = static_cast<OutputType>(scale * (value - zeroPoint)); in compute()
51 bool computePerChannel(const int8_t* inputData, const Shape& inputShape, OutputType* outputData) { in computePerChannel() argument
72 outputData[i] = static_cast<OutputType>(scale * (value - zeroPoint)); in computePerChannel()
/frameworks/ml/nn/common/include/
DOperations.h45 bool floorFloat16(const _Float16* inputData, _Float16* outputData, const Shape& shape);
46 bool floorFloat32(const float* inputData, float* outputData, const Shape& shape);
54 _Float16* outputData, const Shape& outputShape);
60 int32_t depthMultiplier, int32_t activation, float* outputData,
68 uint8_t* outputData, const Shape& outputShape);
76 int32_t depthMultiplier, int32_t activation, uint8_t* outputData,
81 _Float16* outputData, const Shape& outputShape);
83 float bias, float alpha, float beta, int32_t axis, float* outputData,
86 bool copyData(const void* inputData, const Shape& inputShape, void* outputData,
91 T* outputData, const Shape& outputShape);
[all …]
/frameworks/av/media/libaaudio/examples/loopback/src/
DLoopbackAnalyzer.h454 float *outputData, int outputChannelCount,
625 void sendImpulses(float *outputData, int outputChannelCount, int numFrames) { in sendImpulses() argument
632 *outputData = sample; in sendImpulses()
633 outputData += outputChannelCount; in sendImpulses()
637 void sendOneImpulse(float *outputData, int outputChannelCount) { in sendOneImpulse() argument
639 sendImpulses(outputData, outputChannelCount, kImpulseSizeInFrames); in sendOneImpulse()
648 float *outputData, int outputChannelCount, in process() argument
662 outputData[i] = 0; in process()
673 sendImpulses(outputData, outputChannelCount, numFrames); in process()
702 outputData[i] = 0; in process()
[all …]
/frameworks/av/media/libstagefright/codecs/amrwbenc/
DSoftAMRWBEncoder.cpp437 VO_CODECBUFFER outputData; in onQueueFilled() local
438 memset(&outputData, 0, sizeof(outputData)); in onQueueFilled()
442 outputData.Buffer = outPtr; in onQueueFilled()
443 outputData.Length = outAvailable; in onQueueFilled()
445 mEncoderHandle, &outputData, &outputInfo); in onQueueFilled()
448 outHeader->nFilledLen = outputData.Length; in onQueueFilled()
/frameworks/av/media/codec2/components/amr_nb_wb/
DC2SoftAmrWbEnc.cpp243 VO_CODECBUFFER outputData; in encodeInput() local
244 memset(&outputData, 0, sizeof(outputData)); in encodeInput()
245 outputData.Buffer = buffer; in encodeInput()
246 outputData.Length = length; in encodeInput()
248 mEncoderHandle, &outputData, &outputInfo); in encodeInput()
253 return outputData.Length; in encodeInput()

123