/frameworks/ml/nn/common/operations/ |
D | Rank.cpp | 37 hal::OperandType inputType = context->getInputType(kInputTensor); in validate() local 38 NN_RET_CHECK(inputType == hal::OperandType::TENSOR_FLOAT16 || in validate() 39 inputType == hal::OperandType::TENSOR_FLOAT32 || in validate() 40 inputType == hal::OperandType::TENSOR_INT32 || in validate() 41 inputType == hal::OperandType::TENSOR_QUANT8_ASYMM || in validate() 42 inputType == hal::OperandType::TENSOR_QUANT16_SYMM || in validate() 43 inputType == hal::OperandType::TENSOR_BOOL8 || in validate() 44 inputType == hal::OperandType::TENSOR_QUANT8_SYMM_PER_CHANNEL || in validate() 45 inputType == hal::OperandType::TENSOR_QUANT16_ASYMM || in validate() 46 inputType == hal::OperandType::TENSOR_QUANT8_SYMM || in validate() [all …]
|
D | Elementwise.cpp | 91 OperandType inputType = context->getInputType(kInputTensor); in validate() local 92 NN_RET_CHECK(inputType == OperandType::TENSOR_FLOAT16 || in validate() 93 inputType == OperandType::TENSOR_FLOAT32) in validate() 95 NN_RET_CHECK(validateInputTypes(context, {inputType})); in validate() 96 NN_RET_CHECK(validateOutputTypes(context, {inputType})); in validate() 103 OperandType inputType = context->getInputType(kInputTensor); in validateAbs() local 104 NN_RET_CHECK(inputType == OperandType::TENSOR_FLOAT16 || in validateAbs() 105 inputType == OperandType::TENSOR_FLOAT32 || inputType == OperandType::TENSOR_INT32) in validateAbs() 107 NN_RET_CHECK(validateInputTypes(context, {inputType})); in validateAbs() 108 NN_RET_CHECK(validateOutputTypes(context, {inputType})); in validateAbs() [all …]
|
D | Dequantize.cpp | 83 const OperandType inputType = context->getInputType(kInputTensor); in validate() local 91 if (inputType == OperandType::TENSOR_QUANT8_ASYMM && in validate() 96 NN_RET_CHECK(inputType == OperandType::TENSOR_QUANT8_ASYMM || in validate() 97 inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED || in validate() 98 inputType == OperandType::TENSOR_QUANT8_SYMM || in validate() 99 inputType == OperandType::TENSOR_QUANT8_SYMM_PER_CHANNEL) in validate() 100 << "Unsupported input operand type for DEQUANTIZE op: " << toString(inputType); in validate() 119 const OperandType inputType = context->getInputType(kInputTensor); in execute() local 123 if (inputType == OperandType::TENSOR_QUANT8_ASYMM) { in execute() 131 } else if (inputType == OperandType::TENSOR_QUANT8_SYMM) { in execute() [all …]
|
D | Squeeze.cpp | 44 OperandType inputType = context->getInputType(kInputTensor); in validate() local 45 NN_RET_CHECK(inputType == OperandType::TENSOR_FLOAT16 || in validate() 46 inputType == OperandType::TENSOR_FLOAT32 || in validate() 47 inputType == OperandType::TENSOR_QUANT8_ASYMM || in validate() 48 inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) in validate() 49 << "Unsupported input operand type for SQUEEZE op: " << toString(inputType); in validate() 52 if (inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) { in validate() 54 } else if (inputType == OperandType::TENSOR_FLOAT16) { in validate() 61 inputType, in validate() 64 NN_RET_CHECK(validateOutputTypes(context, {inputType})); in validate()
|
D | Select.cpp | 75 OperandType inputType = context->getInputType(kInputTensor1); in validate() local 76 NN_RET_CHECK(inputType == OperandType::TENSOR_FLOAT16 || in validate() 77 inputType == OperandType::TENSOR_FLOAT32 || in validate() 78 inputType == OperandType::TENSOR_INT32 || in validate() 79 inputType == OperandType::TENSOR_QUANT8_ASYMM || in validate() 80 inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) in validate() 81 << "Unsupported input operand type for select op: " << toString(inputType); in validate() 82 NN_RET_CHECK(validateInputTypes(context, {OperandType::TENSOR_BOOL8, inputType, inputType})); in validate() 83 NN_RET_CHECK(validateOutputTypes(context, {inputType})); in validate()
|
D | Reduce.cpp | 75 OperandType inputType = context->getInputType(kInputTensor); in validateProdSum() local 76 NN_RET_CHECK(inputType == OperandType::TENSOR_FLOAT16 || in validateProdSum() 77 inputType == OperandType::TENSOR_FLOAT32) in validateProdSum() 80 validateInputTypes(context, {inputType, OperandType::TENSOR_INT32, OperandType::BOOL})); in validateProdSum() 81 NN_RET_CHECK(validateOutputTypes(context, {inputType})); in validateProdSum() 92 OperandType inputType = context->getInputType(kInputTensor); in validateMaxMin() local 93 NN_RET_CHECK(inputType == OperandType::TENSOR_FLOAT16 || in validateMaxMin() 94 inputType == OperandType::TENSOR_FLOAT32 || in validateMaxMin() 95 inputType == OperandType::TENSOR_QUANT8_ASYMM || in validateMaxMin() 96 inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) in validateMaxMin() [all …]
|
D | TopK_V2.cpp | 82 OperandType inputType = context->getInputType(kInputTensor); in validate() local 83 NN_RET_CHECK(inputType == OperandType::TENSOR_FLOAT16 || in validate() 84 inputType == OperandType::TENSOR_FLOAT32 || in validate() 85 inputType == OperandType::TENSOR_INT32 || in validate() 86 inputType == OperandType::TENSOR_QUANT8_ASYMM || in validate() 87 inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) in validate() 88 << "Unsupported input operand type for select op: " << toString(inputType); in validate() 89 NN_RET_CHECK(validateInputTypes(context, {inputType, OperandType::INT32})); in validate() 90 NN_RET_CHECK(validateOutputTypes(context, {inputType, OperandType::TENSOR_INT32})); in validate() 92 if (inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) { in validate()
|
D | Quantize.cpp | 73 const OperandType inputType = context->getInputType(kInputTensor); in validate() local 76 NN_RET_CHECK(inputType == OperandType::TENSOR_FLOAT16 || in validate() 77 inputType == OperandType::TENSOR_FLOAT32) in validate() 78 << "Unsupported input operand type for QUANTIZE op: " << toString(inputType); in validate() 100 const OperandType inputType = context->getInputType(kInputTensor); in execute() local 102 if (inputType == OperandType::TENSOR_FLOAT32) { in execute() 112 } else if (inputType == OperandType::TENSOR_FLOAT16) { in execute() 124 << toString(inputType) in execute()
|
D | Neg.cpp | 56 OperandType inputType = context->getInputType(kInputTensor); in validate() local 57 NN_RET_CHECK(inputType == OperandType::TENSOR_FLOAT16 || in validate() 58 inputType == OperandType::TENSOR_FLOAT32 || inputType == OperandType::TENSOR_INT32) in validate() 60 NN_RET_CHECK(validateInputTypes(context, {inputType})); in validate() 61 NN_RET_CHECK(validateOutputTypes(context, {inputType})); in validate()
|
D | Elu.cpp | 61 auto inputType = context->getInputType(kInputTensor); in validate() local 62 if (inputType == OperandType::TENSOR_FLOAT16 || inputType == OperandType::TENSOR_FLOAT32) { in validate() 68 inputType == OperandType::TENSOR_FLOAT16 ? OperandType::FLOAT16 : OperandType::FLOAT32; in validate() 69 return validateInputTypes(context, {inputType, scalarType}) && in validate() 70 validateOutputTypes(context, {inputType}); in validate()
|
D | ChannelShuffle.cpp | 66 auto inputType = context->getInputType(kInputTensor); in validate() local 67 NN_RET_CHECK(inputType == OperandType::TENSOR_FLOAT16 || in validate() 68 inputType == OperandType::TENSOR_FLOAT32 || in validate() 69 inputType == OperandType::TENSOR_QUANT8_ASYMM || in validate() 70 inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) in validate() 76 NN_RET_CHECK(validateInputTypes(context, {inputType, OperandType::INT32, OperandType::INT32})); in validate() 77 NN_RET_CHECK(validateOutputTypes(context, {inputType})); in validate() 78 if (inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) { in validate()
|
D | Gather.cpp | 68 OperandType inputType = context->getInputType(kInputTensor); in validate() local 69 NN_RET_CHECK(inputType == OperandType::TENSOR_FLOAT16 || in validate() 70 inputType == OperandType::TENSOR_FLOAT32 || in validate() 71 inputType == OperandType::TENSOR_INT32 || in validate() 72 inputType == OperandType::TENSOR_QUANT8_ASYMM || in validate() 73 inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) in validate() 76 {inputType, OperandType::INT32, OperandType::TENSOR_INT32})); in validate() 77 NN_RET_CHECK(validateOutputTypes(context, {inputType})); in validate() 78 if (inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) { in validate()
|
D | UnidirectionalSequenceRNN.cpp | 135 OperandType inputType = context->getInputType(kInputTensor); in validate() local 136 if (inputType != OperandType::TENSOR_FLOAT16 && inputType != OperandType::TENSOR_FLOAT32) { in validate() 138 << toString(inputType); in validate() 141 NN_RET_CHECK(validateInputTypes(context, {inputType, inputType, inputType, inputType, inputType, in validate() 143 std::vector<OperandType> outputTypes = {inputType}; in validate() 147 outputTypes.push_back(inputType); in validate()
|
D | PRelu.cpp | 104 auto inputType = context->getInputType(kInputTensor); in validate() local 105 NN_RET_CHECK(inputType == OperandType::TENSOR_FLOAT16 || in validate() 106 inputType == OperandType::TENSOR_FLOAT32 || in validate() 107 inputType == OperandType::TENSOR_QUANT8_ASYMM || in validate() 108 inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) in validate() 110 NN_RET_CHECK(validateInputTypes(context, {inputType, inputType})); in validate() 111 NN_RET_CHECK(validateOutputTypes(context, {inputType})); in validate() 112 if (inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) { in validate()
|
D | StridedSlice.cpp | 105 OperandType inputType = context->getInputType(kInputTensor); in validate() local 106 NN_RET_CHECK(inputType == OperandType::TENSOR_FLOAT16 || in validate() 107 inputType == OperandType::TENSOR_FLOAT32 || in validate() 108 inputType == OperandType::TENSOR_QUANT8_ASYMM || in validate() 109 inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) in validate() 110 << "Unsupported input operand type for STRIDED_SLICE op: " << toString(inputType); in validate() 113 if (inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) { in validate() 115 } else if (inputType == OperandType::TENSOR_FLOAT16) { in validate() 122 inputType, in validate() 130 NN_RET_CHECK(validateOutputTypes(context, {inputType})); in validate()
|
D | ResizeImageOps.cpp | 184 auto inputType = context->getInputType(kInputTensor); in validate() local 186 std::vector<OperandType> inExpectedTypes = {inputType, scalarType, scalarType}; in validate() 187 NN_RET_CHECK(inputType == OperandType::TENSOR_FLOAT16 || in validate() 188 inputType == OperandType::TENSOR_FLOAT32 || in validate() 189 inputType == OperandType::TENSOR_QUANT8_ASYMM || in validate() 190 inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) in validate() 192 if (inputType == OperandType::TENSOR_FLOAT16 || inputType == OperandType::TENSOR_QUANT8_ASYMM) { in validate() 195 if (inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) { in validate() 200 if (inputType == OperandType::TENSOR_FLOAT32) { in validate() 202 } else if (inputType == OperandType::TENSOR_FLOAT16) { in validate() [all …]
|
D | Slice.cpp | 88 const OperandType inputType = context->getInputType(kInputTensor); in validate() local 89 NN_RET_CHECK(inputType == OperandType::TENSOR_FLOAT16 || in validate() 90 inputType == OperandType::TENSOR_FLOAT32 || in validate() 91 inputType == OperandType::TENSOR_INT32 || in validate() 92 inputType == OperandType::TENSOR_QUANT8_ASYMM || in validate() 93 inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) in validate() 95 if (inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) { in validate() 101 {inputType, OperandType::TENSOR_INT32, OperandType::TENSOR_INT32}) && in validate() 102 validateOutputTypes(context, {inputType}); in validate()
|
D | BidirectionalSequenceRNN.cpp | 327 OperandType inputType = context->getInputType(kInputTensor); in validate() local 328 if (inputType != OperandType::TENSOR_FLOAT16 && inputType != OperandType::TENSOR_FLOAT32) { in validate() 330 << toString(inputType); in validate() 334 context, {inputType, inputType, inputType, inputType, inputType, inputType, inputType, in validate() 335 inputType, inputType, inputType, inputType, inputType, OperandType::INT32, in validate() 338 std::vector<OperandType> outExpectedTypes(numOutputs, inputType); in validate()
|
D | Transpose.cpp | 80 const OperandType inputType = context->getInputType(kInputTensor); in validate() local 81 if (inputType == OperandType::TENSOR_FLOAT32 || inputType == OperandType::TENSOR_QUANT8_ASYMM) { in validate() 83 } else if (inputType == OperandType::TENSOR_FLOAT16) { in validate() 85 } else if (inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) { in validate() 94 return validateInputTypes(context, {inputType, OperandType::TENSOR_INT32}) && in validate() 95 validateOutputTypes(context, {inputType}); in validate()
|
D | LogicalNot.cpp | 50 OperandType inputType = context->getInputType(kInputTensor); in validate() local 51 NN_RET_CHECK(inputType == OperandType::TENSOR_BOOL8) in validate() 53 NN_RET_CHECK(validateInputTypes(context, {inputType})); in validate() 54 NN_RET_CHECK(validateOutputTypes(context, {inputType})); in validate()
|
D | Comparisons.cpp | 132 OperandType inputType = context->getInputType(kInputTensor1); in validate() local 134 inputType == OperandType::TENSOR_BOOL8 || inputType == OperandType::TENSOR_FLOAT16 || in validate() 135 inputType == OperandType::TENSOR_FLOAT32 || inputType == OperandType::TENSOR_INT32 || in validate() 136 inputType == OperandType::TENSOR_QUANT8_ASYMM || in validate() 137 inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) in validate() 138 << "Unsupported input operand type for comparison op: " << toString(inputType); in validate() 139 NN_RET_CHECK(validateInputTypes(context, {inputType, inputType})); in validate() 141 if (inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) { in validate()
|
D | LogicalAndOr.cpp | 66 OperandType inputType = context->getInputType(kInputTensor1); in validate() local 67 NN_RET_CHECK(inputType == OperandType::TENSOR_BOOL8) in validate() 69 NN_RET_CHECK(validateInputTypes(context, {inputType, inputType})); in validate() 70 NN_RET_CHECK(validateOutputTypes(context, {inputType})); in validate()
|
/frameworks/ml/nn/runtime/test/fibonacci_extension/ |
D | FibonacciExtensionTest.cpp | 129 void addNopOperation(ExtensionModel* model, ExtensionOperandType inputType, uint32_t input, in addNopOperation() argument 132 ASSERT_EQ(inputType.operandType.type, ANEURALNETWORKS_TENSOR_FLOAT32); in addNopOperation() 133 ASSERT_EQ(inputType.dimensions.size(), 1u); in addNopOperation() 135 uint32_t inputZeros = model->addOperand(&inputType); in addNopOperation() 136 uint32_t inputSize = inputType.dimensions[0]; in addNopOperation() 150 void createModel(ExtensionModel* model, ExtensionOperandType inputType, in createModel() argument 152 uint32_t fibonacciInput = model->addOperand(&inputType); in createModel() 155 uint32_t modelInput = addNopOperations ? model->addOperand(&inputType) : fibonacciInput; in createModel() 159 addNopOperation(model, inputType, modelInput, fibonacciInput); in createModel() 178 ExtensionOperandType inputType(static_cast<Type>(mModel.getExtensionOperandType( in TEST_F() local [all …]
|
/frameworks/ml/nn/common/ |
D | Utils.cpp | 898 auto inputType = operands[inputIndexes[0]].type; in validateOperation() local 901 if (inputType == OperandType::TENSOR_FLOAT32) { in validateOperation() 905 } else if (inputType == OperandType::TENSOR_FLOAT16) { in validateOperation() 909 } else if (inputType == OperandType::TENSOR_QUANT8_ASYMM) { in validateOperation() 913 } else if (inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) { in validateOperation() 940 auto inputType = operands[inputIndexes[0]].type; in validateOperation() local 943 if (inputType == OperandType::TENSOR_FLOAT32) { in validateOperation() 947 } else if (inputType == OperandType::TENSOR_FLOAT16) { in validateOperation() 951 } else if (inputType == OperandType::TENSOR_QUANT8_ASYMM) { in validateOperation() 955 } else if (inputType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED) { in validateOperation() [all …]
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | EditorInfo.java | 97 public int inputType = TYPE_NULL; field in EditorInfo 511 switch (inputType&(TYPE_MASK_CLASS|TYPE_MASK_VARIATION)) { in makeCompatible() 513 inputType = TYPE_CLASS_TEXT|TYPE_TEXT_VARIATION_EMAIL_ADDRESS in makeCompatible() 514 | (inputType&TYPE_MASK_FLAGS); in makeCompatible() 517 inputType = TYPE_CLASS_TEXT|TYPE_TEXT_VARIATION_PASSWORD in makeCompatible() 518 | (inputType&TYPE_MASK_FLAGS); in makeCompatible() 522 inputType = TYPE_CLASS_NUMBER in makeCompatible() 523 | (inputType&TYPE_MASK_FLAGS); in makeCompatible() 533 pw.println(prefix + "inputType=0x" + Integer.toHexString(inputType) in dump() 562 dest.writeInt(inputType); in writeToParcel() [all …]
|