Home
last modified time | relevance | path

Searched refs:outputType (Results 1 – 13 of 13) sorted by relevance

/frameworks/ml/nn/common/operations/
DDequantize.cpp84 const OperandType outputType = context->getOutputType(kOutputTensor); in validate() local
92 outputType == OperandType::TENSOR_FLOAT32) { in validate()
101 NN_RET_CHECK(outputType == OperandType::TENSOR_FLOAT16 || in validate()
102 outputType == OperandType::TENSOR_FLOAT32) in validate()
103 << "Unsupported output operand type for DEQUANTIZE op: " << toString(outputType); in validate()
120 const OperandType outputType = context->getOutputType(kOutputTensor); in execute() local
125 if (outputType == OperandType::TENSOR_FLOAT16) { in execute()
128 } else if (outputType == OperandType::TENSOR_FLOAT32) { in execute()
133 if (outputType == OperandType::TENSOR_FLOAT16) { in execute()
136 } else if (outputType == OperandType::TENSOR_FLOAT32) { in execute()
[all …]
DFill.cpp49 bool getValueType(OperandType outputType, OperandType* valueType) { in getValueType() argument
50 switch (outputType) { in getValueType()
61 NN_RET_CHECK_FAIL() << "Unsupported value type for fill op: " << toString(outputType); in getValueType()
72 OperandType outputType = context->getOutputType(kOutputTensor); in validate() local
73 NN_RET_CHECK(outputType == OperandType::TENSOR_FLOAT16 || in validate()
74 outputType == OperandType::TENSOR_FLOAT32 || in validate()
75 outputType == OperandType::TENSOR_INT32) in validate()
76 << "Unsupported output type for fill op: " << toString(outputType); in validate()
77 NN_RET_CHECK(validateOutputTypes(context, {outputType})); in validate()
80 NN_RET_CHECK(getValueType(outputType, &valueType)); in validate()
DQuantize.cpp74 const OperandType outputType = context->getOutputType(kOutputTensor); in validate() local
79 NN_RET_CHECK(outputType == OperandType::TENSOR_QUANT8_ASYMM || in validate()
80 outputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) in validate()
81 << "Unsupported output operand type for QUANTIZE op: " << toString(outputType); in validate()
82 if (outputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) { in validate()
101 const OperandType outputType = context->getOutputType(kOutputTensor); in execute() local
103 if (outputType == OperandType::TENSOR_QUANT8_ASYMM) { in execute()
107 } else if (outputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) { in execute()
113 if (outputType == OperandType::TENSOR_QUANT8_ASYMM) { in execute()
117 } else if (outputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) { in execute()
DMultinomialTest.cpp50 OperandType outputType(Type::TENSOR_INT32, {batch_size_, sample_size_}); in MultinomialOpModel() local
51 outputs.push_back(model_.addOperand(&outputType)); in MultinomialOpModel()
/frameworks/ml/nn/runtime/test/fibonacci_extension/
DFibonacciExtensionTest.cpp151 ExtensionOperandType outputType, bool addNopOperations) { in createModel() argument
153 uint32_t fibonacciOutput = model->addOperand(&outputType); in createModel()
156 uint32_t modelOutput = addNopOperations ? model->addOperand(&outputType) : fibonacciOutput; in createModel()
165 addNopOperation(model, outputType, fibonacciOutput, modelOutput); in createModel()
181 ExtensionOperandType outputType( in TEST_F() local
189 createModel(&mModel, inputType, outputType, /*addNopOperations=*/false); in TEST_F()
219 ExtensionOperandType outputType(Type::TENSOR_FLOAT32, {N}); in TEST_F() local
220 createModel(&mModel, inputType, outputType, /*addNopOperations=*/true); in TEST_F()
248 ExtensionOperandType outputType(Type::TENSOR_FLOAT32, {1}); in TEST_F() local
249 createModel(&mModel, inputType, outputType, /*addNopOperations=*/false); in TEST_F()
[all …]
DFibonacciDriver.cpp71 int32_t outputType = static_cast<int32_t>(model.main.operands[operation.outputs[0]].type); in validate() local
76 NN_RET_CHECK(outputType == ((prefix << kLowBitsType) | EXAMPLE_TENSOR_QUANT64_ASYMM) || in validate()
77 outputType == ANEURALNETWORKS_TENSOR_FLOAT32); in validate()
/frameworks/base/location/java/android/location/
DLocation.java232 public static String convert(double coordinate, int outputType) { in convert() argument
237 if ((outputType != FORMAT_DEGREES) && in convert()
238 (outputType != FORMAT_MINUTES) && in convert()
239 (outputType != FORMAT_SECONDS)) { in convert()
240 throw new IllegalArgumentException("outputType=" + outputType); in convert()
252 if (outputType == FORMAT_MINUTES || outputType == FORMAT_SECONDS) { in convert()
258 if (outputType == FORMAT_SECONDS) { in convert()
/frameworks/av/include/drm/
Ddrm_framework_common.h88 outputType(_outputType), in ActionDescription()
93 int outputType; /* BLUETOOTH , HDMI*/
/frameworks/rs/tests/java_api/ScriptGroupTest/src/com/android/rs/sgtest/
DFilters.java41 Object in, Type outputType); in asyncLaunch() argument
47 Object in, Type outputType) { in asyncLaunch() argument
48 return builder.addKernel(getKernelID(), outputType, in); in asyncLaunch()
128 Object in, Type outputType) { in asyncLaunch() argument
129 return builder.addKernel(getKernelID(), outputType, in asyncLaunch()
/frameworks/av/drm/common/
DIDrmManagerService.cpp460 data.writeInt32(description.outputType); in validateAction()
1172 const int outputType = data.readInt32(); in onTransact() local
1175 ActionDescription(outputType, configuration)); in onTransact()
/frameworks/ml/nn/common/
DUtils.cpp1539 auto outputType = outputOperand.type; in validateOperation() local
1546 (outputType == OperandType::TENSOR_FLOAT16 || in validateOperation()
1547 outputType == OperandType::TENSOR_FLOAT32 || in validateOperation()
1548 outputType == OperandType::TENSOR_INT32 || in validateOperation()
1549 outputType == OperandType::TENSOR_QUANT8_ASYMM)) { in validateOperation()
1551 outExpectedTypes = {outputType}; in validateOperation()
/frameworks/ml/nn/runtime/test/
DTestPartitioning.cpp715 const std::vector<uint32_t>& inputs, WrapperType outputType, in addExplicitOperationXTo1() argument
717 uint32_t output = addOperand(outputType, dimensionedOutput); in addExplicitOperationXTo1()
DTestValidateOperations.cpp3902 for (auto outputType : outputTypes) { in TEST() local
3903 castOpTest(inputType, outputType); in TEST()