diff --git a/tests/gtests/test_batch_normalization_common.hpp b/tests/gtests/test_batch_normalization_common.hpp index ab3ef7b09e8..6aab31ad264 100644 --- a/tests/gtests/test_batch_normalization_common.hpp +++ b/tests/gtests/test_batch_normalization_common.hpp @@ -74,12 +74,6 @@ class bnorm_test_common : public ::testing::TestWithParam { protected: virtual void SetUp() { - data_type = data_traits::data_type; - - SKIP_IF(data_type == memory::data_type::s8 - && get_test_engine_kind() == engine::kind::gpu, - "GPU does not support int8 data type."); - p = ::testing::TestWithParam::GetParam(); catch_expected_failures( [=]() { Test(); }, p.expect_to_fail, p.expected_status); @@ -92,6 +86,7 @@ class bnorm_test_common : public ::testing::TestWithParam { eng = get_test_engine(); strm = make_stream(eng); + memory::data_type data_type = data_traits::data_type; ASSERT_TRUE(isF32(data_type) || isS8(data_type)); test_bnorm_sizes_t bs = p.sizes;