Home
last modified time | relevance | path

Searched refs:performanceInfo (Results 1 – 8 of 8) sorted by relevance

/packages/modules/NeuralNetworks/shim_and_sl/
DShimDevice.cpp104 SL_ANeuralNetworksPerformanceInfo performanceInfo; in getCapabilities() local
107 device, SL_ANEURALNETWORKS_CAPABILITIES_PERFORMANCE_RELAXED_SCALAR, &performanceInfo); in getCapabilities()
108 capabilities.relaxedFloat32toFloat16PerformanceScalar = convertPerformanceInfo(performanceInfo); in getCapabilities()
111 device, SL_ANEURALNETWORKS_CAPABILITIES_PERFORMANCE_RELAXED_TENSOR, &performanceInfo); in getCapabilities()
112 capabilities.relaxedFloat32toFloat16PerformanceTensor = convertPerformanceInfo(performanceInfo); in getCapabilities()
115 device, SL_ANEURALNETWORKS_CAPABILITIES_PERFORMANCE_IF, &performanceInfo); in getCapabilities()
116 capabilities.ifPerformance = convertPerformanceInfo(performanceInfo); in getCapabilities()
119 device, SL_ANEURALNETWORKS_CAPABILITIES_PERFORMANCE_WHILE, &performanceInfo); in getCapabilities()
120 capabilities.whilePerformance = convertPerformanceInfo(performanceInfo); in getCapabilities()
126 .info = convertPerformanceInfo(info.performanceInfo), in getCapabilities()
/packages/modules/NeuralNetworks/shim_and_sl/public/
DNeuralNetworksSupportLibraryImpl.h68 SL_ANeuralNetworksPerformanceInfo performanceInfo; member
205 SL_ANeuralNetworksPerformanceInfo* performanceInfo);
1310 SL_ANeuralNetworksPerformanceInfo* performanceInfo);
/packages/modules/NeuralNetworks/runtime/
DNeuralNetworks.cpp1801 SL_ANeuralNetworksPerformanceInfo* performanceInfo) { in SL_ANeuralNetworksDevice_getPerformanceInfo() argument
1802 if (performanceInfo) *performanceInfo = {.execTime = 0.0f, .powerUsage = 0.0f}; in SL_ANeuralNetworksDevice_getPerformanceInfo()
1804 if (device == nullptr || performanceInfo == nullptr) { in SL_ANeuralNetworksDevice_getPerformanceInfo()
1819 *performanceInfo = conv(capabilities.relaxedFloat32toFloat16PerformanceScalar); in SL_ANeuralNetworksDevice_getPerformanceInfo()
1822 *performanceInfo = conv(capabilities.relaxedFloat32toFloat16PerformanceTensor); in SL_ANeuralNetworksDevice_getPerformanceInfo()
1825 *performanceInfo = conv(capabilities.ifPerformance); in SL_ANeuralNetworksDevice_getPerformanceInfo()
1828 *performanceInfo = conv(capabilities.whilePerformance); in SL_ANeuralNetworksDevice_getPerformanceInfo()
1848 .performanceInfo = {.execTime = operandPerformance.info.execTime, in SL_ANeuralNetworksDevice_forEachOperandPerformanceInfo()
/packages/modules/NeuralNetworks/common/types/src/
DTypeUtils.cpp513 std::ostream& operator<<(std::ostream& os, const Capabilities::PerformanceInfo& performanceInfo) { in operator <<() argument
514 return os << "Capabilities::PerformanceInfo{.execTime=" << performanceInfo.execTime in operator <<()
515 << ", .powerUsage=" << performanceInfo.powerUsage << "}"; in operator <<()
DValidation.cpp264 const Capabilities::PerformanceInfo& performanceInfo) { in validateCapabilitiesPerformanceInfo() argument
265 NN_RET_CHECK_GT(performanceInfo.execTime, 0.0f); in validateCapabilitiesPerformanceInfo()
266 NN_RET_CHECK_GT(performanceInfo.powerUsage, 0.0f); in validateCapabilitiesPerformanceInfo()
/packages/modules/NeuralNetworks/common/types/include/nnapi/
DTypeUtils.h102 std::ostream& operator<<(std::ostream& os, const Capabilities::PerformanceInfo& performanceInfo);
/packages/modules/NeuralNetworks/common/include/
DLegacyHalUtils.h335 Capabilities::PerformanceInfo uncheckedConvert(const V1_0::PerformanceInfo& performanceInfo);
/packages/modules/NeuralNetworks/common/
DLegacyHalUtils.cpp1602 Capabilities::PerformanceInfo uncheckedConvert(const V1_0::PerformanceInfo& performanceInfo) { in uncheckedConvert() argument
1603 return handleError(unvalidatedConvert(performanceInfo)); in uncheckedConvert()