mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Add memory domain VTS validation tests.
Bug: 147777318 Test: 1.3 VTS with sample driver Change-Id: Ia2097345924726d8fb627845fd7438cc3eb35eb6
This commit is contained in:
@@ -40,6 +40,7 @@ cc_test {
|
||||
"BasicTests.cpp",
|
||||
"CompilationCachingTests.cpp",
|
||||
"GeneratedTestHarness.cpp",
|
||||
"MemoryDomainTests.cpp",
|
||||
"QualityOfServiceTests.cpp",
|
||||
"TestAssertions.cpp",
|
||||
"ValidateBurst.cpp",
|
||||
|
||||
@@ -72,8 +72,6 @@ using HidlToken = hidl_array<uint8_t, static_cast<uint32_t>(Constant::BYTE_SIZE_
|
||||
|
||||
namespace {
|
||||
|
||||
enum class Executor { ASYNC, SYNC, BURST, FENCED };
|
||||
|
||||
enum class OutputType { FULLY_SPECIFIED, UNSPECIFIED, INSUFFICIENT, MISSED_DEADLINE };
|
||||
|
||||
enum class MemoryType { SHARED, DEVICE };
|
||||
|
||||
1166
neuralnetworks/1.3/vts/functional/MemoryDomainTests.cpp
Normal file
1166
neuralnetworks/1.3/vts/functional/MemoryDomainTests.cpp
Normal file
File diff suppressed because it is too large
Load Diff
@@ -192,4 +192,19 @@ sp<IPreparedModel> getPreparedModel_1_3(const sp<PreparedModelCallback>& callbac
|
||||
return IPreparedModel::castFrom(preparedModelV1_0).withDefault(nullptr);
|
||||
}
|
||||
|
||||
std::string toString(Executor executor) {
|
||||
switch (executor) {
|
||||
case Executor::ASYNC:
|
||||
return "ASYNC";
|
||||
case Executor::SYNC:
|
||||
return "SYNC";
|
||||
case Executor::BURST:
|
||||
return "BURST";
|
||||
case Executor::FENCED:
|
||||
return "FENCED";
|
||||
default:
|
||||
CHECK(false);
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace android::hardware::neuralnetworks::V1_3::vts::functional
|
||||
|
||||
@@ -52,6 +52,10 @@ void createPreparedModel(const sp<IDevice>& device, const Model& model,
|
||||
// Utility function to get PreparedModel from callback and downcast to V1_2.
|
||||
sp<IPreparedModel> getPreparedModel_1_3(const sp<implementation::PreparedModelCallback>& callback);
|
||||
|
||||
enum class Executor { ASYNC, SYNC, BURST, FENCED };
|
||||
|
||||
std::string toString(Executor executor);
|
||||
|
||||
} // namespace android::hardware::neuralnetworks::V1_3::vts::functional
|
||||
|
||||
#endif // ANDROID_HARDWARE_NEURALNETWORKS_V1_3_VTS_HAL_NEURALNETWORKS_H
|
||||
|
||||
Reference in New Issue
Block a user