mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:23:37 +00:00
Add TENSOR_BOOL8 support to generated tests
Bug: 119096815
Test: mma
Change-Id: I6a9c49d5c4312a37a91943c668ff8c8ed5ef38c5
Merged-In: I6a9c49d5c4312a37a91943c668ff8c8ed5ef38c5
(cherry picked from commit 9e3fad1801)
This commit is contained in:
committed by
Przemyslaw Szczepaniak
parent
51e44f7090
commit
dc98cb0a6b
@@ -36,6 +36,7 @@ namespace neuralnetworks {
|
||||
namespace generated_tests {
|
||||
using ::android::hardware::neuralnetworks::V1_0::implementation::ExecutionCallback;
|
||||
using ::android::hardware::neuralnetworks::V1_0::implementation::PreparedModelCallback;
|
||||
using ::test_helper::bool8;
|
||||
using ::test_helper::compare;
|
||||
using ::test_helper::expectMultinomialDistributionWithinTolerance;
|
||||
using ::test_helper::filter;
|
||||
@@ -65,7 +66,8 @@ void copy_back(MixedTyped* dst, const std::vector<RequestArgument>& ra, char* sr
|
||||
copy_back_<uint8_t>(dst, ra, src);
|
||||
copy_back_<int16_t>(dst, ra, src);
|
||||
copy_back_<_Float16>(dst, ra, src);
|
||||
static_assert(5 == std::tuple_size<MixedTyped>::value,
|
||||
copy_back_<bool8>(dst, ra, src);
|
||||
static_assert(6 == std::tuple_size<MixedTyped>::value,
|
||||
"Number of types in MixedTyped changed, but copy_back function wasn't updated");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user