diff --git a/src/plugins/template/tests/functional/op_reference/grn.cpp b/src/plugins/template/tests/functional/op_reference/grn.cpp index f5a31eb2c97a1c..19e91b6485d522 100644 --- a/src/plugins/template/tests/functional/op_reference/grn.cpp +++ b/src/plugins/template/tests/functional/op_reference/grn.cpp @@ -23,8 +23,8 @@ struct GrnParams { pshape(shape), inType(iType), outType(iType), - inputData(CreateTensor(iType, iValues)), - refData(CreateTensor(iType, oValues)) {} + inputData(CreateTensor(pshape.get_shape(), iType, iValues)), + refData(CreateTensor(pshape.get_shape(), iType, oValues)) {} float bias; PartialShape pshape; element::Type inType; @@ -36,14 +36,13 @@ struct GrnParams { class ReferenceGrnLayerTest : public testing::TestWithParam, public CommonReferenceTest { public: void SetUp() override { - legacy_compare = true; - auto params = GetParam(); + const auto& params = GetParam(); function = CreateFunction(params.bias, params.pshape, params.inType); inputData = {params.inputData}; refOutData = {params.refData}; } static std::string getTestCaseName(const testing::TestParamInfo& obj) { - auto param = obj.param; + const auto& param = obj.param; std::ostringstream result; result << "bias=" << param.bias << "_"; result << "shape=" << param.pshape << "_";