/packages/modules/NeuralNetworks/common/ |
D | LegacyHalUtils.cpp | 263 void update(hardware::hidl_vec<VersionedOperandPerformance<version>>* operandPerformance, in update() argument 265 CHECK(operandPerformance != nullptr); in update() 267 std::lower_bound(operandPerformance->begin(), operandPerformance->end(), type, in update() 270 CHECK(it != operandPerformance->end()) in update() 271 << toString(type) << " not in " << toString(*operandPerformance); in update() 275 void update(hardware::hidl_vec<V1_2::Capabilities::OperandPerformance>* operandPerformance, in update() argument 277 update<HalVersion::V1_2>(operandPerformance, type, perf); in update() 279 void update(hardware::hidl_vec<V1_3::Capabilities::OperandPerformance>* operandPerformance, in update() argument 281 update<HalVersion::V1_3>(operandPerformance, type, perf); in update() 286 const hardware::hidl_vec<VersionedOperandPerformance<version>>& operandPerformance, in lookup() argument [all …]
|
/packages/modules/NeuralNetworks/common/types/src/ |
D | TypeUtils.cpp | 89 std::vector<Capabilities::OperandPerformance> operandPerformance; in makeOperandPerformance() local 90 operandPerformance.reserve(std::size(kOperandTypes)); in makeOperandPerformance() 92 std::back_inserter(operandPerformance), [&perfInfo](OperandType op) { in makeOperandPerformance() 95 return operandPerformance; in makeOperandPerformance() 98 void update(std::vector<Capabilities::OperandPerformance>* operandPerformance, OperandType type, in update() argument 100 CHECK(operandPerformance != nullptr); in update() 101 auto it = std::lower_bound(operandPerformance->begin(), operandPerformance->end(), type, in update() 105 CHECK(it != operandPerformance->end()); in update() 294 auto operandPerformance = makeOperandPerformance(defaultInfo); in makeCapabilities() local 295 update(&operandPerformance, OperandType::TENSOR_FLOAT32, float32Info); in makeCapabilities() [all …]
|
D | Validation.cpp | 271 const Capabilities::OperandPerformance& operandPerformance) { in validateCapabilitiesOperandPerformance() argument 272 auto version = NN_TRY(validateOperandType(operandPerformance.type)); in validateCapabilitiesOperandPerformance() 274 NN_TRY(validateCapabilitiesPerformanceInfo(operandPerformance.info))); in validateCapabilitiesOperandPerformance() 288 NN_TRY(validateCapabilitiesOperandPerformanceTable(capabilities.operandPerformance)); in validateCapabilities()
|
/packages/modules/NeuralNetworks/driver/sample/ |
D | CanonicalDevice.cpp | 68 std::vector<Capabilities::OperandPerformance> operandPerformance; in makeCapabilities() local 69 operandPerformance.reserve(std::size(kOperandsTypes)); in makeCapabilities() 71 std::back_inserter(operandPerformance), [kPerfInfo](OperandType op) { in makeCapabilities() 75 Capabilities::OperandPerformanceTable::create(std::move(operandPerformance)).value(); in makeCapabilities() 79 .operandPerformance = std::move(table), in makeCapabilities()
|
/packages/modules/NeuralNetworks/common/include/ |
D | LegacyHalUtils.h | 97 void update(hardware::hidl_vec<V1_2::Capabilities::OperandPerformance>* operandPerformance, 99 void update(hardware::hidl_vec<V1_3::Capabilities::OperandPerformance>* operandPerformance, 106 const hardware::hidl_vec<V1_2::Capabilities::OperandPerformance>& operandPerformance, 109 const hardware::hidl_vec<V1_3::Capabilities::OperandPerformance>& operandPerformance, 334 const V1_3::Capabilities::OperandPerformance& operandPerformance);
|
/packages/modules/NeuralNetworks/driver/sample_aidl/ |
D | SampleDriverAidlFull.cpp | 40 .operandPerformance = nonExtensionOperandPerformance(mPerf), in getCapabilities()
|
/packages/modules/NeuralNetworks/driver/sample_hidl/ |
D | SampleDriverFull.cpp | 36 .operandPerformance = nonExtensionOperandPerformance<HalVersion::V1_3>(mPerf), in getCapabilities_1_3()
|
D | SampleDriverFloatXNNPACK.cpp | 1942 .operandPerformance = nonExtensionOperandPerformance<HalVersion::V1_3>({1.0f, 1.0f}), in getCapabilities_1_3() 1945 update(&capabilities.operandPerformance, V1_3::OperandType::TENSOR_FLOAT32, in getCapabilities_1_3() 1947 update(&capabilities.operandPerformance, V1_3::OperandType::FLOAT32, in getCapabilities_1_3()
|
/packages/modules/NeuralNetworks/runtime/test/ |
D | HalUtils.h | 38 .operandPerformance = nonExtensionOperandPerformance<HalVersion::V1_3>(perfInfo), in makeCapabilities()
|
D | TestMemoryDomain.cpp | 100 .operandPerformance = nonExtensionOperandPerformance<HalVersion::V1_3>(kPerf), in getCapabilities_1_3()
|
D | TestCompilationCaching.cpp | 172 .operandPerformance = nonExtensionOperandPerformance<HalVersion::V1_3>(kPerf), in getCapabilities_1_3()
|
D | TestExecution.cpp | 343 .operandPerformance = in getCapabilities_1_3()
|
D | TestPartitioningRandom.cpp | 564 .operandPerformance = nn::nonExtensionOperandPerformance<HalVersion::V1_3>(kPerf), in getCapabilities_1_3()
|
D | TestPartitioning.cpp | 188 ::android::nn::update(&capabilities->operandPerformance, type, perfInfo); in update() 192 return ::android::nn::lookup(capabilities.operandPerformance, type).execTime; in lookupExecTime() 1055 .operandPerformance =
|
D | TestIntrospectionControl.cpp | 132 .operandPerformance = in DeviceSpecification()
|
/packages/modules/NeuralNetworks/runtime/ |
D | NeuralNetworks.cpp | 1845 constexpr auto conv = [](const Capabilities::OperandPerformance& operandPerformance) { in SL_ANeuralNetworksDevice_forEachOperandPerformanceInfo() argument 1847 .operandType = static_cast<int32_t>(operandPerformance.type), in SL_ANeuralNetworksDevice_forEachOperandPerformanceInfo() 1848 .performanceInfo = {.execTime = operandPerformance.info.execTime, in SL_ANeuralNetworksDevice_forEachOperandPerformanceInfo() 1849 .powerUsage = operandPerformance.info.powerUsage}, in SL_ANeuralNetworksDevice_forEachOperandPerformanceInfo() 1856 for (const auto& operandPerformance : capabilities.operandPerformance.asVector()) { in SL_ANeuralNetworksDevice_forEachOperandPerformanceInfo() local 1857 const SL_ANeuralNetworksOperandPerformanceInfo opPerf = conv(operandPerformance); in SL_ANeuralNetworksDevice_forEachOperandPerformanceInfo()
|
D | Manager.cpp | 124 return getCapabilities().operandPerformance.lookup(type); in getPerformance()
|
/packages/modules/NeuralNetworks/runtime/test/fibonacci_extension/ |
D | FibonacciDriver.cpp | 181 .operandPerformance = nonExtensionOperandPerformance<HalVersion::V1_3>(kPerf), in getCapabilities_1_3()
|
/packages/modules/NeuralNetworks/common/types/include/nnapi/ |
D | Types.h | 315 OperandPerformanceTable operandPerformance; member
|
D | TypeUtils.h | 104 const Capabilities::OperandPerformance& operandPerformance);
|
/packages/modules/NeuralNetworks/shim_and_sl/ |
D | ShimDevice.cpp | 131 device, static_cast<void*>(&capabilities.operandPerformance), fn); in getCapabilities()
|
/packages/modules/NeuralNetworks/tools/api/ |
D | types.spec | 7053 * If a particular OperandType is not present in operandPerformance, 7057 * If a particular {@link OperandType} is not present in operandPerformance, 7065 %{OperandPerformanceTable} operandPerformance;
|