/frameworks/ml/nn/runtime/include/ |
D | NeuralNetworksWrapperExtensions.h | 50 ANeuralNetworksOperandType operandType; member 55 : operandType(other.operandType), in OperandType() 58 operandType.dimensions = dimensions.size() > 0 ? dimensions.data() : nullptr; in OperandType() 63 operandType = other.operandType; 66 operandType.dimensions = dimensions.size() > 0 ? dimensions.data() : nullptr; 74 operandType = { in dimensions() 116 if (ANeuralNetworksModel_addOperand(mModel, &(type->operandType)) != in addOperand()
|
D | NeuralNetworksWrapper.h | 111 ANeuralNetworksOperandType operandType; member 116 : operandType(other.operandType), in OperandType() 119 operandType.dimensions = dimensions.size() > 0 ? dimensions.data() : nullptr; in OperandType() 124 operandType = other.operandType; 127 operandType.dimensions = dimensions.size() > 0 ? dimensions.data() : nullptr; 134 operandType = { in dimensions() 147 operandType = { in OperandType() 244 if (ANeuralNetworksModel_addOperand(mModel, &(type->operandType)) != in addOperand()
|
/frameworks/ml/nn/runtime/test/ |
D | TestOperandExtraParams.cpp | 118 ANeuralNetworksOperandType operandType = createOperand(dataType); in testAddingWithSymmPerChannelQuantParams() local 119 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, &operandType), ANEURALNETWORKS_NO_ERROR); in testAddingWithSymmPerChannelQuantParams() 239 ANeuralNetworksOperandType operandType = createOperand(dataType); in TEST_F() local 240 operandType.scale = 1.0f; in TEST_F() 241 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, &operandType), ANEURALNETWORKS_BAD_DATA); in TEST_F() 247 ANeuralNetworksOperandType operandType = createOperand(dataType); in TEST_F() local 248 operandType.zeroPoint = 1; in TEST_F() 249 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, &operandType), ANEURALNETWORKS_BAD_DATA); in TEST_F()
|
D | TestValidateOperations.cpp | 74 OperandTypeWithExtraParams(const ANeuralNetworksOperandType& operandType) in OperandTypeWithExtraParams() 75 : operandType(operandType), channelQuant(std::nullopt), valueModel(std::nullopt) {} in OperandTypeWithExtraParams() 77 ANeuralNetworksOperandType operandType; member 82 if (operandType.type != that.operandType.type || in operator ==() 83 operandType.scale != that.operandType.scale || in operator ==() 84 operandType.zeroPoint != that.operandType.zeroPoint || in operator ==() 85 operandType.dimensionCount != that.operandType.dimensionCount) { in operator ==() 100 if (operandType.dimensions) { in operator ==() 101 if (!that.operandType.dimensions) { in operator ==() 104 if (!std::equal(operandType.dimensions, in operator ==() [all …]
|
D | TestUnknownDimensions.cpp | 258 return &matrixTypeBothOther.operandType; in TestOne() 261 return &matrixTypeFirstOther.operandType; in TestOne() 264 return &matrixTypeSecondOther.operandType; in TestOne() 267 return &matrixTypeIntended.operandType; in TestOne() 272 return &matrixTypeIntended.operandType; in TestOne()
|
D | TestPartitioning.cpp | 1977 auto TestType = [](OperandType operandType) { in TEST_F() argument 1978 if (operandType == OperandType::SUBGRAPH) { in TEST_F() 1982 SCOPED_TRACE(toString(operandType)); in TEST_F() 1987 uint32_t opndIn = model.addOperand(static_cast<WrapperType>(operandType)); in TEST_F() 1998 update(&goodCapabilities, operandType, 0.25); in TEST_F() 2018 update(&badCapabilities, operandType, 0.75); in TEST_F() 2528 OperandType operandType = static_cast<OperandType>(type); in TEST_F() local 2529 update(&capabilities, operandType, typePerf(operandType)); in TEST_F() 2533 OperandType operandType = static_cast<OperandType>(type); in TEST_F() local 2534 update(&capabilities, operandType, typePerf(operandType)); in TEST_F() [all …]
|
D | TestValidation.cpp | 62 ANeuralNetworksOperandType operandType = { in addScalarOperand() local 64 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, &operandType), ANEURALNETWORKS_NO_ERROR); in addScalarOperand() 68 uint32_t addOperand(const ANeuralNetworksOperandType& operandType) { in addOperand() argument 69 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, &operandType), ANEURALNETWORKS_NO_ERROR); in addOperand() 78 ANeuralNetworksOperandType operandType = { in addTensorOperand() local 83 return addOperand(operandType); in addTensorOperand() 311 ANeuralNetworksOperandType operandType = { in addScalarOperand() local 313 EXPECT_EQ(ANeuralNetworksModel_addOperand(model, &operandType), ANEURALNETWORKS_NO_ERROR); in addScalarOperand() 318 ANeuralNetworksOperandType operandType = { in addTensorOperand() local 323 EXPECT_EQ(ANeuralNetworksModel_addOperand(model, &operandType), ANEURALNETWORKS_NO_ERROR); in addTensorOperand() [all …]
|
D | TestNeuralNetworksWrapper.h | 146 if (ANeuralNetworksModel_addOperand(mModel, &(type->operandType)) != in addOperand() 171 OperandType operandType(Type::MODEL, {}); in addModelOperand() 172 uint32_t operand = addOperand(&operandType); in addModelOperand()
|
D | TestUnspecifiedDimensions.cpp | 257 (kLevel == SpecificationLevel::UNSPECIFIED_TYPE) ? nullptr : &type.operandType; in setInOut()
|
D | TestPartitioningRandom.cpp | 1320 desc.mVector.size() * sizeof(float), &problemType.operandType); in TEST_P() 1337 &problemType.operandType); in TEST_P()
|
/frameworks/ml/nn/common/operations/ |
D | Cast.cpp | 49 #define ANDROID_NN_COPY_CAST(operandType, dataType) \ in copyToTensor() argument 50 case operandType: { \ in copyToTensor() 80 #define ANDROID_NN_COPY_TO_TENSOR(operandType, dataType) \ in eval() argument 81 case operandType: { \ in eval()
|
D | ArgMinMax.cpp | 60 #define NNAPI_IMPL_ARG_MIN_MAX(operandType, dataType) \ in argMinMaxGeneric() argument 61 if (inputShape.type == operandType) { \ in argMinMaxGeneric()
|
D | Tile.cpp | 95 #define ANDROID_NN_IMPL_TILE(operandType, dataType) \ in eval() argument 96 case operandType: { \ in eval()
|
/frameworks/ml/nn/runtime/test/android_fuzzing/ |
D | FuzzHarness.cpp | 39 const auto operandType = static_cast<OperandType>(operand.type); in operandOverflows() local 40 return nonExtensionOperandSizeOfDataOverflowsUInt32(operandType, operand.dimensions); in operandOverflows()
|
/frameworks/ml/nn/runtime/ |
D | TypeManager.cpp | 251 uint32_t operandType = static_cast<uint32_t>(type); in getExtensionOperandTypeInfo() local 252 uint16_t prefix = operandType >> kLowBitsType; in getExtensionOperandTypeInfo() 253 uint16_t typeWithinExtension = operandType & ((1 << kLowBitsType) - 1); in getExtensionOperandTypeInfo()
|
D | ModelBuilder.cpp | 68 OperandType operandType = static_cast<OperandType>(type.type); in addOperand() local 69 if (isExtensionOperandType(operandType) && !TypeManager::get()->areExtensionsAllowed()) { in addOperand() 74 operandType == OperandType::OEM || operandType == OperandType::TENSOR_OEM_BYTE; in addOperand() 80 if (isExtensionOperandType(operandType) && in addOperand() 81 !TypeManager::get()->getExtensionOperandTypeInfo(operandType, &info)) { in addOperand() 82 LOG(ERROR) << "Extension operand type " << toString(operandType) << " is not registered"; in addOperand() 93 .type = operandType, in addOperand()
|
D | ExecutionBuilder.cpp | 905 const OperandType operandType = mModel->getOutputOperand(i).type; in updateOutputShapes() local 906 NN_RET_CHECK(!TypeManager::get()->sizeOfDataOverflowsUInt32(operandType, in updateOutputShapes()
|
D | ExecutionPlan.cpp | 1900 const OperandType operandType = mOperands[operandIndex].type; in getPerformance() local 1901 switch (operandType) { in getPerformance() 1916 return applyPreference(device->getPerformance(operandType)); in getPerformance()
|
/frameworks/ml/nn/common/ |
D | ValidateHal.cpp | 943 bool validOperandType(V1_0::OperandType operandType) { in validOperandType() argument 944 switch (operandType) { in validOperandType() 959 bool validOperandType(V1_2::OperandType operandType) { in validOperandType() argument 960 switch (operandType) { in validOperandType() 979 return isExtensionOperandType(static_cast<V1_3::OperandType>(operandType)); in validOperandType() 983 bool validOperandType(V1_3::OperandType operandType) { in validOperandType() argument 984 switch (operandType) { in validOperandType() 1005 return isExtensionOperandType(operandType); in validOperandType()
|
D | Utils.cpp | 2780 static bool compliantWithV1_0(const V1_2::OperandType& operandType) { in compliantWithV1_0() argument 2781 return validOperandType(static_cast<V1_0::OperandType>(operandType)); in compliantWithV1_0() 2784 static bool compliantWithV1_0(const V1_3::OperandType& operandType) { in compliantWithV1_0() argument 2785 return validOperandType(static_cast<V1_0::OperandType>(operandType)); in compliantWithV1_0() 2788 static bool compliantWithV1_2(const V1_3::OperandType& operandType) { in compliantWithV1_2() argument 2789 return validOperandType(static_cast<V1_2::OperandType>(operandType)); in compliantWithV1_2() 2792 V1_0::OperandType convertToV1_0(const V1_2::OperandType& operandType) { in convertToV1_0() argument 2793 if (!compliantWithV1_0(operandType)) { in convertToV1_0() 2794 LOG(ERROR) << "Upcasting non-compliant operand type " << toString(operandType) in convertToV1_0() 2797 return static_cast<V1_0::OperandType>(operandType); in convertToV1_0() [all …]
|
/frameworks/ml/nn/extensions/ |
D | README.md | 123 ANeuralNetworksOperandType operandType{ 128 CHECK_EQ(ANeuralNetworksModel_addOperand(model, &operandType), ANEURALNETWORKS_NO_ERROR);
|
/frameworks/ml/nn/runtime/test/fibonacci_extension/ |
D | FibonacciExtensionTest.cpp | 132 ASSERT_EQ(inputType.operandType.type, ANEURALNETWORKS_TENSOR_FLOAT32); in addNopOperation()
|