diff options
author | Michele Di Giorgio <michele.digiorgio@arm.com> | 2019-09-05 12:30:22 +0100 |
---|---|---|
committer | Pablo Marquez <pablo.tello@arm.com> | 2019-09-27 16:20:14 +0000 |
commit | 6b612f5fa1fee9528f2f87491fe7edb3887d9817 (patch) | |
tree | 579ef443d61ed1319e5d8f44d8a7a8ce83c82aad /tests/validation/CL | |
parent | 240b79de1c211ebb8d439b4a1c8c79777aa36f13 (diff) | |
download | ComputeLibrary-6b612f5fa1fee9528f2f87491fe7edb3887d9817.tar.gz |
COMPMID-2310: CLGenerateProposalsLayer: support for QASYMM8
Change-Id: I48b77e09857cd43f9498d28e8f4bf346e3d7110d
Signed-off-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Reviewed-on: https://review.mlplatform.org/c/1969
Reviewed-by: Pablo Marquez <pablo.tello@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'tests/validation/CL')
-rw-r--r-- | tests/validation/CL/GenerateProposalsLayer.cpp | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/tests/validation/CL/GenerateProposalsLayer.cpp b/tests/validation/CL/GenerateProposalsLayer.cpp index 4ebffd7e79..bfad8e8381 100644 --- a/tests/validation/CL/GenerateProposalsLayer.cpp +++ b/tests/validation/CL/GenerateProposalsLayer.cpp @@ -82,6 +82,8 @@ const auto ComputeAllInfoDataset = framework::dataset::make("ComputeAllInfo", ComputeAnchorsInfo(100U, 100U, 1. / 4.f), }); + +constexpr AbsoluteTolerance<int16_t> tolerance_qsymm16(1); } // namespace TEST_SUITE(CL) @@ -364,7 +366,7 @@ DATA_TEST_CASE(IntegrationTestCaseGenerateProposals, framework::DatasetMode::ALL proposals_final.allocator()->allocate(); select_proposals.run(); - // Select the first N entries of the proposals + // Select the first N entries of the scores CLTensor scores_final; CLSlice select_scores; select_scores.configure(&scores_out, &scores_final, Coordinates(0), Coordinates(N)); @@ -395,6 +397,22 @@ FIXTURE_DATA_TEST_CASE(ComputeAllAnchors, CLComputeAllAnchorsFixture<half>, fram TEST_SUITE_END() // FP16 TEST_SUITE_END() // Float +template <typename T> +using CLComputeAllAnchorsQuantizedFixture = ComputeAllAnchorsQuantizedFixture<CLTensor, CLAccessor, CLComputeAllAnchors, T>; + +TEST_SUITE(Quantized) +TEST_SUITE(QASYMM8) +FIXTURE_DATA_TEST_CASE(ComputeAllAnchors, CLComputeAllAnchorsQuantizedFixture<int16_t>, framework::DatasetMode::ALL, + combine(combine(combine(framework::dataset::make("NumAnchors", { 2, 4, 8 }), ComputeAllInfoDataset), + framework::dataset::make("DataType", { DataType::QSYMM16 })), + framework::dataset::make("QuantInfo", { QuantizationInfo(0.125f, 0) }))) +{ + // Validate output + validate(CLAccessor(_target), _reference, tolerance_qsymm16); +} +TEST_SUITE_END() // QASYMM8 +TEST_SUITE_END() // Quantized + TEST_SUITE_END() // GenerateProposals TEST_SUITE_END() // CL |