/packages/modules/NeuralNetworks/common/ |
D | LegacyUtils.cpp | 544 const std::vector<OperandType>& inExpectedTypes, in validateOperationOperandTypes() argument 547 if (inOperandCount != static_cast<uint32_t>(inExpectedTypes.size()) || in validateOperationOperandTypes() 549 LOG(ERROR) << "Wrong operand count: expected " << inExpectedTypes.size() << " inputs and " in validateOperationOperandTypes() 555 if (operands[inOperandIndexes[i]].type != inExpectedTypes[i]) { in validateOperationOperandTypes() 557 << " for input " << i << ", expected " << inExpectedTypes[i]; in validateOperationOperandTypes() 771 std::vector<OperandType> inExpectedTypes; in validateOperation() local 775 inExpectedTypes = {OperandType::TENSOR_FLOAT32, OperandType::TENSOR_INT32}; in validateOperation() 779 inExpectedTypes = {OperandType::TENSOR_FLOAT16, OperandType::TENSOR_INT32}; in validateOperation() 783 inExpectedTypes = {OperandType::TENSOR_QUANT8_ASYMM, OperandType::TENSOR_INT32}; in validateOperation() 787 inExpectedTypes = {OperandType::TENSOR_QUANT8_ASYMM_SIGNED, in validateOperation() [all …]
|
D | Validation.cpp | 1563 const std::vector<OperandType>& inExpectedTypes, in validateOperationOperandTypes() argument 1566 NN_VALIDATE_EQ(inputIndexes.size(), inExpectedTypes.size()) in validateOperationOperandTypes() 1573 NN_VALIDATE_EQ(operands[inputIndexes[i]].type, inExpectedTypes[i]) in validateOperationOperandTypes() 1575 << i << ", expected " << inExpectedTypes[i]; in validateOperationOperandTypes() 1820 std::vector<OperandType> inExpectedTypes; in validateOperationButNotOperandsImpl() local 1824 inExpectedTypes = {OperandType::TENSOR_FLOAT32, OperandType::TENSOR_INT32}; in validateOperationButNotOperandsImpl() 1828 inExpectedTypes = {OperandType::TENSOR_FLOAT16, OperandType::TENSOR_INT32}; in validateOperationButNotOperandsImpl() 1832 inExpectedTypes = {OperandType::TENSOR_QUANT8_ASYMM, OperandType::TENSOR_INT32}; in validateOperationButNotOperandsImpl() 1836 inExpectedTypes = {OperandType::TENSOR_QUANT8_ASYMM_SIGNED, in validateOperationButNotOperandsImpl() 1845 NN_TRY(validateOperationOperandTypes(operands, inputIndexes, inExpectedTypes, in validateOperationButNotOperandsImpl() [all …]
|
/packages/modules/NeuralNetworks/common/operations/ |
D | QLSTM.cpp | 111 std::vector<OperandType> inExpectedTypes; in validate() local 113 inExpectedTypes.push_back(OperandType::TENSOR_QUANT8_ASYMM_SIGNED); in validate() 116 inExpectedTypes.push_back(OperandType::TENSOR_QUANT8_SYMM); in validate() 120 inExpectedTypes.push_back(OperandType::TENSOR_QUANT16_SYMM); in validate() 124 inExpectedTypes.push_back(OperandType::TENSOR_INT32); in validate() 127 inExpectedTypes.push_back(OperandType::TENSOR_QUANT8_SYMM); in validate() 128 inExpectedTypes.push_back(OperandType::TENSOR_INT32); in validate() 130 inExpectedTypes.push_back(OperandType::TENSOR_QUANT8_ASYMM_SIGNED); in validate() 132 inExpectedTypes.push_back(OperandType::TENSOR_QUANT16_SYMM); in validate() 135 inExpectedTypes.push_back(OperandType::TENSOR_QUANT16_SYMM); in validate() [all …]
|
D | Pooling.cpp | 301 std::vector<OperandType> inExpectedTypes; in validate() local 305 inExpectedTypes = { in validate() 311 inExpectedTypes = { in validate() 319 inExpectedTypes = { in validate() 331 inExpectedTypes = { in validate() 346 inExpectedTypes.insert(inExpectedTypes.end(), explicitScalarTypes.begin(), in validate() 350 inExpectedTypes.push_back(OperandType::BOOL); in validate() 355 NN_RET_CHECK(validateInputTypes(context, inExpectedTypes)); in validate()
|
D | LogSoftmax.cpp | 77 std::vector<OperandType> inExpectedTypes; in validate() local 80 inExpectedTypes = {OperandType::TENSOR_FLOAT32, OperandType::FLOAT32, OperandType::INT32}; in validate() 83 inExpectedTypes = {OperandType::TENSOR_FLOAT16, OperandType::FLOAT16, OperandType::INT32}; in validate() 88 NN_RET_CHECK(validateInputTypes(context, inExpectedTypes)); in validate()
|
D | LocalResponseNormalization.cpp | 145 std::vector<OperandType> inExpectedTypes; in validate() local 150 inExpectedTypes = { in validate() 157 inExpectedTypes = { in validate() 167 inExpectedTypes.push_back(OperandType::INT32); in validate() 177 NN_RET_CHECK(validateInputTypes(context, inExpectedTypes)); in validate()
|
D | FullyConnected.cpp | 229 std::vector<OperandType> inExpectedTypes; in validate() local 234 inExpectedTypes = { in validate() 242 inExpectedTypes = { in validate() 263 inExpectedTypes = { in validate() 272 inExpectedTypes = { in validate() 281 NN_RET_CHECK(validateInputTypes(context, inExpectedTypes)); in validate()
|
D | Softmax.cpp | 240 std::vector<OperandType> inExpectedTypes; in validate() local 244 inExpectedTypes = {inputType, OperandType::FLOAT32}; in validate() 247 inExpectedTypes = {inputType, OperandType::FLOAT16}; in validate() 250 inExpectedTypes = {inputType, OperandType::FLOAT32}; in validate() 260 inExpectedTypes.push_back(OperandType::INT32); in validate() 266 NN_RET_CHECK(validateInputTypes(context, inExpectedTypes)); in validate()
|
D | InstanceNormalization.cpp | 110 std::vector<OperandType> inExpectedTypes; in validate() local 113 inExpectedTypes = {OperandType::TENSOR_FLOAT32, OperandType::FLOAT32, OperandType::FLOAT32, in validate() 116 inExpectedTypes = {OperandType::TENSOR_FLOAT16, OperandType::FLOAT16, OperandType::FLOAT16, in validate() 121 NN_RET_CHECK(validateInputTypes(context, inExpectedTypes)); in validate()
|
D | DepthwiseConv2D.cpp | 428 std::vector<OperandType> inExpectedTypes; in validate() local 430 inExpectedTypes = { in validate() 437 inExpectedTypes = { in validate() 456 inExpectedTypes = { in validate() 484 inExpectedTypes.insert(inExpectedTypes.end(), explicitScalarTypes.begin(), in validate() 490 inExpectedTypes.push_back(OperandType::BOOL); in validate() 497 inExpectedTypes.push_back(OperandType::INT32); in validate() 498 inExpectedTypes.push_back(OperandType::INT32); in validate() 513 NN_RET_CHECK(validateInputTypes(context, inExpectedTypes)); in validate()
|
D | Conv2D.cpp | 550 std::vector<OperandType> inExpectedTypes; in validate() local 552 inExpectedTypes = {OperandType::TENSOR_FLOAT32, OperandType::TENSOR_FLOAT32, in validate() 557 inExpectedTypes = {OperandType::TENSOR_FLOAT16, OperandType::TENSOR_FLOAT16, in validate() 566 inExpectedTypes = {inputType, filterType, OperandType::TENSOR_INT32, in validate() 601 inExpectedTypes.insert(inExpectedTypes.end(), explicitScalarTypes.begin(), in validate() 607 inExpectedTypes.push_back(OperandType::BOOL); in validate() 614 inExpectedTypes.push_back(OperandType::INT32); in validate() 615 inExpectedTypes.push_back(OperandType::INT32); in validate() 630 NN_RET_CHECK(validateInputTypes(context, inExpectedTypes)); in validate()
|
D | ResizeImageOps.cpp | 189 std::vector<OperandType> inExpectedTypes = {inputType, scalarType, scalarType}; in validate() local 216 inExpectedTypes.push_back(OperandType::BOOL); in validate() 219 while (inExpectedTypes.size() < numInputs) { in validate() 220 inExpectedTypes.push_back(OperandType::BOOL); in validate() 224 NN_RET_CHECK(validateInputTypes(context, inExpectedTypes)); in validate()
|
D | RoiPooling.cpp | 195 std::vector<OperandType> inExpectedTypes; in validate() local 198 inExpectedTypes = {OperandType::TENSOR_FLOAT32, OperandType::TENSOR_FLOAT32, in validate() 203 inExpectedTypes = {OperandType::TENSOR_FLOAT16, OperandType::TENSOR_FLOAT16, in validate() 209 inExpectedTypes = {inputType, in validate() 220 NN_RET_CHECK(validateInputTypes(context, inExpectedTypes)); in validate()
|
D | HeatmapMaxKeypoint.cpp | 235 std::vector<OperandType> inExpectedTypes; in validate() local 240 inExpectedTypes = {inputType, inputType, OperandType::BOOL}; in validate() 243 inExpectedTypes = {OperandType::TENSOR_QUANT8_ASYMM, OperandType::TENSOR_QUANT16_ASYMM, in validate() 247 inExpectedTypes = {OperandType::TENSOR_QUANT8_ASYMM_SIGNED, in validate() 255 NN_RET_CHECK(validateInputTypes(context, inExpectedTypes)); in validate()
|
D | GenerateProposals.cpp | 208 std::vector<OperandType> inExpectedTypes; in validate() local 212 inExpectedTypes = {inputType, inputType, OperandType::TENSOR_INT32, inputType}; in validate() 216 inExpectedTypes = {OperandType::TENSOR_QUANT16_ASYMM, deltaInputType, in validate() 224 NN_RET_CHECK(validateInputTypes(context, inExpectedTypes)); in validate() 716 std::vector<OperandType> inExpectedTypes; in validate() local 720 inExpectedTypes = { in validate() 727 inExpectedTypes = { in validate() 735 inExpectedTypes = {inputType, in validate() 749 NN_RET_CHECK(validateInputTypes(context, inExpectedTypes)); in validate() 1230 std::vector<OperandType> inExpectedTypes; in validate() local [all …]
|
D | TransposeConv2D.cpp | 447 std::vector<OperandType> inExpectedTypes; in validate() local 450 inExpectedTypes = {inputType, inputType, inputType}; in validate() 464 inExpectedTypes = {inputType, filterType, OperandType::TENSOR_INT32}; in validate() 481 inExpectedTypes.insert(inExpectedTypes.end(), argExpectedTypes.begin(), argExpectedTypes.end()); in validate() 482 NN_RET_CHECK(validateInputTypes(context, inExpectedTypes)); in validate()
|
D | Concatenation.cpp | 159 std::vector<OperandType> inExpectedTypes(inputCount - 1, inputType); in validate() local 160 inExpectedTypes.push_back(OperandType::INT32); in validate() 176 NN_RET_CHECK(validateInputTypes(context, inExpectedTypes)); in validate()
|
D | RoiAlign.cpp | 348 std::vector<OperandType> inExpectedTypes; in validate() local 351 inExpectedTypes = {OperandType::TENSOR_FLOAT32, OperandType::TENSOR_FLOAT32, in validate() 357 inExpectedTypes = {OperandType::TENSOR_FLOAT16, OperandType::TENSOR_FLOAT16, in validate() 364 inExpectedTypes = {inputType, in validate() 377 NN_RET_CHECK(validateInputTypes(context, inExpectedTypes)); in validate()
|
D | L2Normalization.cpp | 210 std::vector<OperandType> inExpectedTypes = {inputType}; in validate() local 222 inExpectedTypes.push_back(OperandType::INT32); in validate() 231 NN_RET_CHECK(validateInputTypes(context, inExpectedTypes)); in validate()
|
D | UnidirectionalSequenceLSTM.cpp | 125 std::vector<OperandType> inExpectedTypes; in validate() local 128 inExpectedTypes = {OperandType::TENSOR_FLOAT32, OperandType::TENSOR_FLOAT32, in validate() 144 inExpectedTypes = {OperandType::TENSOR_FLOAT16, OperandType::TENSOR_FLOAT16, in validate() 169 NN_RET_CHECK(validateInputTypes(context, inExpectedTypes)); in validate()
|