Home
last modified time | relevance | path

Searched refs:OperandPerformance (Results 1 – 25 of 31) sorted by relevance

12

/aosp12/packages/modules/NeuralNetworks/common/
H A DAidlHalUtils.cpp35 std::vector<aidl_hal::OperandPerformance> nonExtensionOperandPerformance( in nonExtensionOperandPerformance()
38 std::vector<aidl_hal::OperandPerformance> ret; in nonExtensionOperandPerformance()
42 ret.push_back(aidl_hal::OperandPerformance{type, perf}); in nonExtensionOperandPerformance()
46 [](const aidl_hal::OperandPerformance& a, const aidl_hal::OperandPerformance& b) { in nonExtensionOperandPerformance()
53 void update(std::vector<aidl_hal::OperandPerformance>* operandPerformance, in update()
57 [](const aidl_hal::OperandPerformance& perf, in update()
H A DLegacyHalUtils.cpp256 template hardware::hidl_vec<V1_2::Capabilities::OperandPerformance>
258 template hardware::hidl_vec<V1_3::Capabilities::OperandPerformance>
350 static hardware::hidl_vec<V1_2::Capabilities::OperandPerformance>
352 hardware::hidl_vec<V1_2::Capabilities::OperandPerformance> ret( in makeQuantized8PerformanceConsistentWithP()
628 using OperandPerformance = V1_2::Capabilities::OperandPerformance; in convertToV1_2() typedef
630 [](const OperandPerformance& a, const OperandPerformance& b) { in convertToV1_2()
648 using OperandPerformance = V1_2::Capabilities::OperandPerformance; in convertToV1_2() typedef
650 [](const OperandPerformance& a, const OperandPerformance& b) { in convertToV1_2()
681 return V1_2::Capabilities::OperandPerformance{ in convertToV1_2()
708 return V1_3::Capabilities::OperandPerformance{ in convertToV1_3()
[all …]
H A DTypes.cpp74 std::vector<OperandPerformance> operandPerformances) in OperandPerformanceTable()
78 std::vector<OperandPerformance> operandPerformances) { in create()
105 const std::vector<Capabilities::OperandPerformance>&
H A DTypeUtils.cpp645 const Capabilities::OperandPerformance& operandPerformance) { in operator <<()
929 bool operator==(const Capabilities::OperandPerformance& a, in operator ==()
930 const Capabilities::OperandPerformance& b) { in operator ==()
933 bool operator!=(const Capabilities::OperandPerformance& a, in operator !=()
934 const Capabilities::OperandPerformance& b) { in operator !=()
/aosp12/hardware/interfaces/neuralnetworks/1.3/vts/functional/
H A DBasicTests.cpp44 using OperandPerformance = Capabilities::OperandPerformance; in TEST_P() typedef
58 [isPositive](const OperandPerformance& a) { return isPositive(a.info); })); in TEST_P()
60 [](const OperandPerformance& a, const OperandPerformance& b) { in TEST_P()
63 EXPECT_TRUE(std::all_of(opPerf.begin(), opPerf.end(), [](const OperandPerformance& a) { in TEST_P()
/aosp12/packages/modules/NeuralNetworks/common/include/
H A DLegacyHalUtils.h66 using OperandPerformance = V1_2::Capabilities::OperandPerformance;
72 using OperandPerformance = V1_3::Capabilities::OperandPerformance;
77 using VersionedOperandPerformance = typename VersionedType<version>::OperandPerformance;
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,
333 Capabilities::OperandPerformance uncheckedConvert(
334 const V1_3::Capabilities::OperandPerformance& operandPerformance);
H A DAidlHalUtils.h34 std::vector<aidl_hal::OperandPerformance> nonExtensionOperandPerformance(
40 void update(std::vector<aidl_hal::OperandPerformance>* operandPerformance,
/aosp12/hardware/interfaces/neuralnetworks/aidl/vts/functional/
H A DBasicTests.cpp51 [isPositive](const OperandPerformance& a) { return isPositive(a.info); })); in TEST_P()
53 [](const OperandPerformance& a, const OperandPerformance& b) { in TEST_P()
56 EXPECT_TRUE(std::all_of(opPerf.begin(), opPerf.end(), [](const OperandPerformance& a) { in TEST_P()
/aosp12/hardware/interfaces/neuralnetworks/1.2/vts/functional/
H A DBasicTests.cpp43 using OperandPerformance = Capabilities::OperandPerformance; in TEST_P() typedef
57 [isPositive](const OperandPerformance& a) { return isPositive(a.info); })); in TEST_P()
59 [](const OperandPerformance& a, const OperandPerformance& b) { in TEST_P()
/aosp12/hardware/interfaces/neuralnetworks/aidl/android/hardware/neuralnetworks/
H A DCapabilities.aidl19 import android.hardware.neuralnetworks.OperandPerformance;
47 OperandPerformance[] operandPerformance;
H A DOperandPerformance.aidl27 parcelable OperandPerformance {
/aosp12/hardware/interfaces/neuralnetworks/1.2/utils/include/nnapi/hal/1.2/
H A DConversions.h31 GeneralResult<Capabilities::OperandPerformance> unvalidatedConvert(
32 const hal::V1_2::Capabilities::OperandPerformance& operandPerformance);
72 nn::GeneralResult<Capabilities::OperandPerformance> unvalidatedConvert(
73 const nn::Capabilities::OperandPerformance& operandPerformance);
/aosp12/packages/modules/NeuralNetworks/common/include/nnapi/
H A DTypes.h266 struct OperandPerformance { struct
274 std::vector<OperandPerformance> operandPerformances);
277 const std::vector<OperandPerformance>& asVector() const;
280 explicit OperandPerformanceTable(std::vector<OperandPerformance> operandPerformances);
281 std::vector<OperandPerformance> mSorted;
H A DTypeUtils.h104 const Capabilities::OperandPerformance& operandPerformance);
143 bool operator==(const Capabilities::OperandPerformance& a,
144 const Capabilities::OperandPerformance& b);
145 bool operator!=(const Capabilities::OperandPerformance& a,
146 const Capabilities::OperandPerformance& b);
/aosp12/hardware/interfaces/neuralnetworks/1.2/utils/src/
H A DConversions.cpp109 [](const hal::V1_2::Capabilities::OperandPerformance& operandPerformance) { in unvalidatedConvert()
134 GeneralResult<Capabilities::OperandPerformance> unvalidatedConvert( in unvalidatedConvert()
135 const hal::V1_2::Capabilities::OperandPerformance& operandPerformance) { in unvalidatedConvert()
136 return Capabilities::OperandPerformance{ in unvalidatedConvert()
415 std::vector<nn::Capabilities::OperandPerformance> operandPerformance; in unvalidatedConvert()
420 [](const nn::Capabilities::OperandPerformance& operandPerformance) { in unvalidatedConvert()
433 nn::GeneralResult<Capabilities::OperandPerformance> unvalidatedConvert( in unvalidatedConvert()
434 const nn::Capabilities::OperandPerformance& operandPerformance) { in unvalidatedConvert()
435 return Capabilities::OperandPerformance{ in unvalidatedConvert()
/aosp12/hardware/interfaces/neuralnetworks/1.3/utils/include/nnapi/hal/1.3/
H A DConversions.h32 GeneralResult<Capabilities::OperandPerformance> unvalidatedConvert(
33 const hal::V1_3::Capabilities::OperandPerformance& operandPerformance);
73 nn::GeneralResult<Capabilities::OperandPerformance> unvalidatedConvert(
74 const nn::Capabilities::OperandPerformance& operandPerformance);
/aosp12/hardware/interfaces/neuralnetworks/1.3/utils/src/
H A DConversions.cpp124 [](const hal::V1_3::Capabilities::OperandPerformance& operandPerformance) { in unvalidatedConvert()
149 GeneralResult<Capabilities::OperandPerformance> unvalidatedConvert( in unvalidatedConvert()
150 const hal::V1_3::Capabilities::OperandPerformance& operandPerformance) { in unvalidatedConvert()
151 return Capabilities::OperandPerformance{ in unvalidatedConvert()
468 std::vector<nn::Capabilities::OperandPerformance> operandPerformance; in unvalidatedConvert()
473 [](const nn::Capabilities::OperandPerformance& operandPerformance) { in unvalidatedConvert()
488 nn::GeneralResult<Capabilities::OperandPerformance> unvalidatedConvert( in unvalidatedConvert()
489 const nn::Capabilities::OperandPerformance& operandPerformance) { in unvalidatedConvert()
490 return Capabilities::OperandPerformance{ in unvalidatedConvert()
/aosp12/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/1/android/hardware/neuralnetworks/
H A DOperandPerformance.aidl36 parcelable OperandPerformance {
H A DCapabilities.aidl39 android.hardware.neuralnetworks.OperandPerformance[] operandPerformance;
/aosp12/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/current/android/hardware/neuralnetworks/
H A DOperandPerformance.aidl36 parcelable OperandPerformance {
H A DCapabilities.aidl39 android.hardware.neuralnetworks.OperandPerformance[] operandPerformance;
/aosp12/packages/modules/NeuralNetworks/driver/sample/
H A DCanonicalDevice.cpp68 std::vector<Capabilities::OperandPerformance> operandPerformance; in makeCapabilities()
72 return Capabilities::OperandPerformance{.type = op, .info = kPerfInfo}; in makeCapabilities()
/aosp12/hardware/interfaces/neuralnetworks/aidl/utils/include/nnapi/hal/aidl/
H A DConversions.h63 GeneralResult<Capabilities::OperandPerformance> unvalidatedConvert(
64 const aidl_hal::OperandPerformance& operandPerformance);
/aosp12/hardware/interfaces/neuralnetworks/aidl/utils/src/
H A DConversions.cpp178 [](const aidl_hal::OperandPerformance& operandPerformance) { in unvalidatedConvert()
202 GeneralResult<Capabilities::OperandPerformance> unvalidatedConvert( in unvalidatedConvert()
203 const aidl_hal::OperandPerformance& operandPerformance) { in unvalidatedConvert()
204 return Capabilities::OperandPerformance{ in unvalidatedConvert()
/aosp12/packages/modules/NeuralNetworks/shim_and_sl/
H A DShimDevice.cpp122 auto* out = static_cast<std::vector<OperandPerformance>*>(context); in getCapabilities()
123 out->push_back(OperandPerformance{ in getCapabilities()

12