Home
last modified time | relevance | path

Searched refs:operandPerformance (Results 1 – 22 of 22) sorted by relevance

/packages/modules/NeuralNetworks/common/
DLegacyHalUtils.cpp263 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/
DTypeUtils.cpp89 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 …]
DValidation.cpp271 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/
DCanonicalDevice.cpp68 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/
DLegacyHalUtils.h97 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/
DSampleDriverAidlFull.cpp40 .operandPerformance = nonExtensionOperandPerformance(mPerf), in getCapabilities()
/packages/modules/NeuralNetworks/driver/sample_hidl/
DSampleDriverFull.cpp36 .operandPerformance = nonExtensionOperandPerformance<HalVersion::V1_3>(mPerf), in getCapabilities_1_3()
DSampleDriverFloatXNNPACK.cpp1942 .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/
DHalUtils.h38 .operandPerformance = nonExtensionOperandPerformance<HalVersion::V1_3>(perfInfo), in makeCapabilities()
DTestMemoryDomain.cpp100 .operandPerformance = nonExtensionOperandPerformance<HalVersion::V1_3>(kPerf), in getCapabilities_1_3()
DTestCompilationCaching.cpp172 .operandPerformance = nonExtensionOperandPerformance<HalVersion::V1_3>(kPerf), in getCapabilities_1_3()
DTestExecution.cpp343 .operandPerformance = in getCapabilities_1_3()
DTestPartitioningRandom.cpp564 .operandPerformance = nn::nonExtensionOperandPerformance<HalVersion::V1_3>(kPerf), in getCapabilities_1_3()
DTestPartitioning.cpp188 ::android::nn::update(&capabilities->operandPerformance, type, perfInfo); in update()
192 return ::android::nn::lookup(capabilities.operandPerformance, type).execTime; in lookupExecTime()
1055 .operandPerformance =
DTestIntrospectionControl.cpp132 .operandPerformance = in DeviceSpecification()
/packages/modules/NeuralNetworks/runtime/
DNeuralNetworks.cpp1845 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()
DManager.cpp124 return getCapabilities().operandPerformance.lookup(type); in getPerformance()
/packages/modules/NeuralNetworks/runtime/test/fibonacci_extension/
DFibonacciDriver.cpp181 .operandPerformance = nonExtensionOperandPerformance<HalVersion::V1_3>(kPerf), in getCapabilities_1_3()
/packages/modules/NeuralNetworks/common/types/include/nnapi/
DTypes.h315 OperandPerformanceTable operandPerformance; member
DTypeUtils.h104 const Capabilities::OperandPerformance& operandPerformance);
/packages/modules/NeuralNetworks/shim_and_sl/
DShimDevice.cpp131 device, static_cast<void*>(&capabilities.operandPerformance), fn); in getCapabilities()
/packages/modules/NeuralNetworks/tools/api/
Dtypes.spec7053 * If a particular OperandType is not present in operandPerformance,
7057 * If a particular {@link OperandType} is not present in operandPerformance,
7065 %{OperandPerformanceTable} operandPerformance;