From 3653844410c0f721e4abf03695e3292f532af05e Mon Sep 17 00:00:00 2001 From: Patryk Elszkowski Date: Mon, 19 Jul 2021 10:48:15 +0200 Subject: [PATCH] add template test for all supported types in Acosh --- .../tests/functional/op_reference/acosh.cpp | 32 ++++++++++++------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/docs/template_plugin/tests/functional/op_reference/acosh.cpp b/docs/template_plugin/tests/functional/op_reference/acosh.cpp index 65832dd4460648..a9ca9b53a8b965 100644 --- a/docs/template_plugin/tests/functional/op_reference/acosh.cpp +++ b/docs/template_plugin/tests/functional/op_reference/acosh.cpp @@ -82,14 +82,24 @@ TEST_P(ReferenceAcoshLayerTest, AcoshWithHardcodedRefs) { } // namespace -INSTANTIATE_TEST_SUITE_P(smoke_Acosh_With_Hardcoded_Refs, ReferenceAcoshLayerTest, - ::testing::Values(Builder {} - .input({{8}, element::f32, std::vector {1.f, 2.f, 3.f, 4.f, 5.f, 10.f, 100.f, 1000.f}}) - .expected({{8}, element::f32, std::vector {0., 1.317, 1.763, 2.063, 2.292, 2.993, 5.298, 7.6012}}), - Builder {} - .input({{8}, element::i32, std::vector {1, 2, 3, 4, 5, 10, 100, 1000}}) - .expected({{8}, element::i32, std::vector {0, 1, 2, 2, 2, 3, 5, 8}}), - Builder {} - .input({{8}, element::u32, std::vector {1, 2, 3, 4, 5, 10, 100, 1000}}) - .expected({{8}, element::u32, std::vector {0, 1, 2, 2, 2, 3, 5, 8}})), - ReferenceAcoshLayerTest::getTestCaseName); +INSTANTIATE_TEST_SUITE_P( + smoke_Acosh_With_Hardcoded_Refs, ReferenceAcoshLayerTest, + ::testing::Values(Builder {} + .input({{8}, element::f16, std::vector {1.f, 2.f, 3.f, 4.f, 5.f, 10.f, 100.f, 1000.f}}) + .expected({{8}, element::f16, std::vector {0., 1.317, 1.763, 2.063, 2.292, 2.993, 5.298, 7.6012}}), + Builder {} + .input({{8}, element::f32, std::vector {1.f, 2.f, 3.f, 4.f, 5.f, 10.f, 100.f, 1000.f}}) + .expected({{8}, element::f32, std::vector {0., 1.317, 1.763, 2.063, 2.292, 2.993, 5.298, 7.6012}}), + Builder {} + .input({{8}, element::i32, std::vector {1, 2, 3, 4, 5, 10, 100, 1000}}) + .expected({{8}, element::i32, std::vector {0, 1, 2, 2, 2, 3, 5, 8}}), + Builder {} + .input({{8}, element::i64, std::vector {1, 2, 3, 4, 5, 10, 100, 1000}}) + .expected({{8}, element::i64, std::vector {0, 1, 2, 2, 2, 3, 5, 8}}), + Builder {} + .input({{8}, element::u32, std::vector {1, 2, 3, 4, 5, 10, 100, 1000}}) + .expected({{8}, element::u32, std::vector {0, 1, 2, 2, 2, 3, 5, 8}}), + Builder {} + .input({{8}, element::u64, std::vector {1, 2, 3, 4, 5, 10, 100, 1000}}) + .expected({{8}, element::u64, std::vector {0, 1, 2, 2, 2, 3, 5, 8}})), + ReferenceAcoshLayerTest::getTestCaseName);