Home
last modified time | relevance | path

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

123

/frameworks/ml/nn/common/operations/
DReshape.cpp32 bool copyData(const void* inputData, const Shape& inputShape, void* outputData, in copyData() argument
36 memcpy(outputData, inputData, count); in copyData()
42 T* outputData, const Shape& outputShape) { in depthToSpaceGeneric() argument
45 outputData, convertShapeToDims(outputShape)); in depthToSpaceGeneric()
49 int32_t blockSize, float* outputData,
52 int32_t blockSize, _Float16* outputData,
55 int32_t blockSize, uint8_t* outputData,
60 T* outputData, const Shape& outputShape) { in spaceToDepthGeneric() argument
63 outputData, convertShapeToDims(outputShape)); in spaceToDepthGeneric()
67 int32_t blockSize, float* outputData,
[all …]
DActivation.cpp40 bool reluFloat(const T* inputData, const Shape& inputShape, T* outputData, const Shape& outputShape, in reluFloat() argument
44 for (int i = 0; i < numElements; i++, inputData++, outputData++) { in reluFloat()
45 *outputData = static_cast<T>( in reluFloat()
50 template bool reluFloat<float>(const float* inputData, const Shape& inputShape, float* outputData,
53 _Float16* outputData, const Shape& outputShape, float reluMin,
57 bool relu1Float(const T* inputData, const Shape& inputShape, T* outputData, in relu1Float() argument
59 return reluFloat(inputData, inputShape, outputData, outputShape, -1.f, 1.f); in relu1Float()
61 template bool relu1Float<float>(const float* inputData, const Shape& inputShape, float* outputData,
64 _Float16* outputData, const Shape& outputShape);
67 bool relu6Float(const T* inputData, const Shape& inputShape, T* outputData, in relu6Float() argument
[all …]
DSimpleMath.cpp32 bool floorFloat16(const _Float16* inputData, _Float16* outputData, const Shape& shape) { in floorFloat16() argument
39 convertFloat32ToFloat16(outputDataFloat32, outputData); in floorFloat16()
43 bool floorFloat32(const float* inputData, float* outputData, const Shape& shape) { in floorFloat32() argument
47 tflite::optimized_ops::Floor(inputData, dim, outputData, dim); in floorFloat32()
52 const Shape& axisShape, bool keepDims, _Float16* outputData, in meanFloat16() argument
61 convertFloat32ToFloat16(outputDataFloat32, outputData); in meanFloat16()
67 bool keepDims, T* outputData, const Shape& outputShape) { in meanGeneric() argument
85 getNumberOfDimensions(inputShape), outputData, in meanGeneric()
97 float* outputData, const Shape& outputShape);
100 bool keepDims, uint8_t* outputData,
DPooling.cpp122 float* outputData, const Shape& outputShape) { in averagePoolNhwc() argument
127 convertShapeToTflshape(outputShape), outputData); in averagePoolNhwc()
132 _Float16* outputData, const Shape& outputShape) { in averagePoolNhwc() argument
140 convertFloat32ToFloat16(outputDataFloat32, outputData); in averagePoolNhwc()
145 uint8_t* outputData, const Shape& outputShape) { in averagePoolNhwc() argument
150 convertShapeToTflshape(outputShape), outputData); in averagePoolNhwc()
155 float* outputData, const Shape& outputShape) { in l2PoolNhwc() argument
160 convertShapeToTflshape(outputShape), outputData); in l2PoolNhwc()
165 _Float16* outputData, const Shape& outputShape) { in l2PoolNhwc() argument
172 convertFloat32ToFloat16(outputDataFloat32, outputData); in l2PoolNhwc()
[all …]
DNormalization.cpp31 int32_t axis, float* outputData, in localResponseNormFloat32Impl() argument
40 float* outputBase = outputData + outer * axisSize * innerSize; in localResponseNormFloat32Impl()
61 _Float16* outputData, const Shape& outputShape) { in localResponseNormFloat16() argument
69 convertFloat32ToFloat16(outputDataFloat32, outputData); in localResponseNormFloat16()
75 float bias, float alpha, float beta, int32_t axis, float* outputData, in localResponseNormFloat32() argument
86 convertShapeToTflshape(outputShape), outputData); in localResponseNormFloat32()
90 outputData, outputShape); in localResponseNormFloat32()
DPow.cpp33 const Shape& exponentShape, T* outputData, const Shape& outputShape) { in evalGeneric() argument
48 outputData[outputFlatIndex] = std::pow(static_cast<float>(baseData[baseFlatIndex]), in evalGeneric()
68 const Shape& exponentShape, void* outputData, const Shape& outputShape) { in eval() argument
73 reinterpret_cast<_Float16*>(outputData), outputShape); in eval()
78 reinterpret_cast<float*>(outputData), outputShape); in eval()
DL2Normalization.cpp40 float* outputData, const Shape& outputShape) { in l2normFloat32Impl() argument
49 float* outputBeg = outputData + outer * axisSize * innerSize; in l2normFloat32Impl()
67 uint8_t* outputData, const Shape& outputShape) { in l2normQuant8Impl() argument
76 uint8_t* outputBeg = outputData + outer * axisSize * innerSize; in l2normQuant8Impl()
98 bool l2normFloat32(const float* inputData, const Shape& inputShape, int32_t axis, float* outputData, in l2normFloat32() argument
107 convertShapeToTflshape(outputShape), outputData); in l2normFloat32()
110 return l2normFloat32Impl(inputData, inputShape, axis, outputData, outputShape); in l2normFloat32()
115 _Float16* outputData, const Shape& outputShape) { in l2normFloat16() argument
122 convertFloat32ToFloat16(outputDataFloat32, outputData); in l2normFloat16()
128 uint8_t* outputData, const Shape& outputShape) { in l2normQuant8() argument
[all …]
DSoftmax.cpp43 int32_t axis, float* outputData, const Shape& outputShape) { in softmaxSlowFloat32() argument
52 float* outputBeg = outputData + outer * axisSize * innerSize; in softmaxSlowFloat32()
75 float* outputData, const Shape& outputShape) { in softmaxFloat32() argument
83 convertShapeToTflshape(outputShape), outputData); in softmaxFloat32()
86 return softmaxSlowFloat32(inputData, inputShape, beta, axis, outputData, outputShape); in softmaxFloat32()
91 int32_t axis, _Float16* outputData, const Shape& outputShape) { in softmaxFloat16() argument
99 convertFloat32ToFloat16(outputData_float32, outputData); in softmaxFloat16()
106 uint8_t* outputData, const Shape& outputShape) { in softmaxQuant8Impl() argument
126 uint8_t* outputBeg = outputData + outer * axisSize * innerSize; in softmaxQuant8Impl()
187 int32_t axis, uint8_t* outputData, const Shape& outputShape) { in softmaxQuant8() argument
[all …]
DArgMinMax.cpp32 Out* outputData, const Shape& outputShape) { in argMinMaxImpl() argument
50 outputData[outer * innerSize + inner] = minMaxIndex; in argMinMaxImpl()
57 uint8_t* outputData, const Shape& outputShape) { in argMinMaxGeneric() argument
69 reinterpret_cast<int32_t*>(outputData), \ in argMinMaxGeneric()
DCast.cpp40 bool copyToTensor(const FromT* inputData, int numElements, uint8_t* outputData, in copyToTensor() argument
45 copyCast(inputData, reinterpret_cast<dataType*>(outputData), numElements); \ in copyToTensor()
71 bool eval(const uint8_t* inputData, const Shape& inputShape, uint8_t* outputData, in eval() argument
79 copyToTensor(reinterpret_cast<const dataType*>(inputData), numElements, outputData, \ in eval()
DStridedSlice.cpp34 int32_t shrinkAxisMask, uint8_t* outputData, const Shape& outputShape) { in stridedSliceGeneric() argument
66 reinterpret_cast<float*>(outputData), convertShapeToDims(outputShape)); in stridedSliceGeneric()
72 reinterpret_cast<_Float16*>(outputData), convertShapeToDims(outputShape)); in stridedSliceGeneric()
78 reinterpret_cast<uint8_t*>(outputData), convertShapeToDims(outputShape)); in stridedSliceGeneric()
DQuantize.cpp39 bool quantizeFloat32ToQuant8(const float* inputData, uint8_t* outputData, in quantizeFloat32ToQuant8() argument
44 outputData[i] = static_cast<uint8_t>(std::max<float>( in quantizeFloat32ToQuant8()
51 bool quantizeFloat16ToQuant8(const _Float16* inputData, uint8_t* outputData, in quantizeFloat16ToQuant8() argument
56 outputData[i] = static_cast<uint8_t>(std::max<float>( in quantizeFloat16ToQuant8()
DTile.cpp65 void tileImpl(const T* inputData, const Shape& inputShape, const int32_t* multiples, T* outputData, in tileImpl() argument
67 TileOneDimension(inputShape, inputData, multiples, outputData, 0); in tileImpl()
87 uint8_t* outputData, const Shape& outputShape) { in eval() argument
93 reinterpret_cast<dataType*>(outputData), outputShape); \ in eval()
DDepthwiseConv2D.cpp34 _Float16* outputData, const Shape& outputShape) { in depthwiseConvFloat16() argument
50 convertFloat32ToFloat16(outputDataFloat32, outputData); in depthwiseConvFloat16()
70 int32_t depthMultiplier, int32_t activation, float* outputData, in depthwiseConvFloat32() argument
93 convertShapeToTflshape(outputShape), outputData); in depthwiseConvFloat32()
104 uint8_t* outputData, const Shape& outputShape) { in depthwiseConvQuant8() argument
142 convertShapeToTflshape(outputShape), outputData); in depthwiseConvQuant8()
154 int32_t depthMultiplier, int32_t activation, uint8_t* outputData, in depthwiseConvQuant8PerChannel() argument
196 uint8_t* outPtr = outputData; in depthwiseConvQuant8PerChannel()
DMaximumMinimum.cpp32 bool isMinimum, T* outputData, const Shape& outputShape) { in evalGeneric() argument
47 outputData[outputFlatIndex] = isMinimum ? std::min(aData[aFlatIndex], bData[bFlatIndex]) in evalGeneric()
57 const Shape& bShape, bool isMinimum, uint8_t* outputData, in evalQuant8() argument
75 outputData[outputFlatIndex] = in evalQuant8()
DResizeImageOps.cpp48 T* outputData, const Shape& outputShape) { in resizeImageOpNhwc() argument
62 convertShapeToTflshape(outputShape), outputData); in resizeImageOpNhwc()
69 convertShapeToTflshape(outputShape), outputData); in resizeImageOpNhwc()
76 const Shape& inputShape, _Float16* outputData, in resizeImageOpNhwc() argument
84 convertFloat32ToFloat16(outputData_float32, outputData); in resizeImageOpNhwc()
90 T* outputData, const Shape& outputShape) { in resizeImageOp() argument
94 NN_RET_CHECK(output.initialize(outputData, outputShape)); in resizeImageOp()
DFullyConnected.cpp50 float* outputData, const Shape& outputShape) { in fullyConnectedFloat32() argument
65 outputData, convertShapeToDims(outputShape)); in fullyConnectedFloat32()
72 outputData, convertShapeToDims(outputShape)); in fullyConnectedFloat32()
80 _Float16* outputData, const Shape& outputShape) { in fullyConnectedFloat16() argument
93 convertFloat32ToFloat16(outputDataFloat32, outputData); in fullyConnectedFloat16()
101 uint8_t* outputData, const Shape& outputShape) { in fullyConnectedQuant8() argument
133 outputActivationMin, outputActivationMax, outputData, in fullyConnectedQuant8()
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()
DDequantize.cpp37 bool compute(const InputType* inputData, const Shape& inputShape, OutputType* outputData) { in compute() argument
43 outputData[i] = static_cast<OutputType>(scale * (value - zeroPoint)); in compute()
49 bool computePerChannel(const int8_t* inputData, const Shape& inputShape, OutputType* outputData) { in computePerChannel() argument
70 outputData[i] = static_cast<OutputType>(scale * (value - zeroPoint)); in computePerChannel()
DGroupedConv2D.cpp46 int32_t numGroups, int32_t activation, float* outputData, in groupedConvFloat32() argument
55 float* outPtr = outputData; in groupedConvFloat32()
103 int32_t numGroups, int32_t activation, uint8_t* outputData, in groupedConvQuant8() argument
126 uint8_t* outPtr = outputData; in groupedConvQuant8()
182 int32_t activation, uint8_t* outputData, in groupedConvQuant8PerChannel() argument
212 uint8_t* outPtr = outputData; in groupedConvQuant8PerChannel()
267 int32_t activation, _Float16* outputData, const Shape& outputShape) { in groupedConvFloat16() argument
283 convertFloat32ToFloat16(outputData_float32, outputData); in groupedConvFloat16()
DTransposeConv2D.cpp117 const TransposeConv2dParam& param, float* outputData, in transposeConvNhwc() argument
125 memset(outputData, 0, getNumberOfElements(outputShape) * sizeof(float)); in transposeConvNhwc()
128 float* outputBase = outputData; in transposeConvNhwc()
160 float* outPtr = outputData; in transposeConvNhwc()
173 const TransposeConv2dParam& param, uint8_t* outputData, in transposeConvNhwc() argument
252 uint8_t* outPtr = outputData; in transposeConvNhwc()
269 const TransposeConv2dParam& param, _Float16* outputData, in transposeConvNhwc() argument
284 convertFloat32ToFloat16(outputData_float32, outputData); in transposeConvNhwc()
292 const TransposeConv2dParam& param, T_Input* outputData, in transposeConv() argument
297 NN_RET_CHECK(output.initialize(outputData, outputShape)); in transposeConv()
[all …]
/frameworks/ml/nn/common/include/
DOperations.h46 bool floorFloat16(const _Float16* inputData, _Float16* outputData, const Shape& shape);
47 bool floorFloat32(const float* inputData, float* outputData, const Shape& shape);
55 _Float16* outputData, const Shape& outputShape);
61 int32_t depthMultiplier, int32_t activation, float* outputData,
69 uint8_t* outputData, const Shape& outputShape);
77 int32_t depthMultiplier, int32_t activation, uint8_t* outputData,
82 _Float16* outputData, const Shape& outputShape);
84 float bias, float alpha, float beta, int32_t axis, float* outputData,
87 bool copyData(const void* inputData, const Shape& inputShape, void* outputData,
92 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/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Conformance/
DProgram.cs75 byte[] outputData = response.ToByteArray(); in RunTest()
76 output.Write(outputData.Length); in RunTest()
77 output.Write(outputData); in RunTest()
/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()

123