Skip to content

Commit

Permalink
[Tmpl test] GRN: enable whole Tensor comparison (#23993)
Browse files Browse the repository at this point in the history
### Details:
 - Used actual shape in expected output tensor.

### Tickets:
 - CVS-137166
  • Loading branch information
t-jankowski authored Apr 15, 2024
1 parent 4fa01a6 commit 477a57b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/plugins/template/tests/functional/op_reference/grn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -36,14 +36,13 @@ struct GrnParams {
class ReferenceGrnLayerTest : public testing::TestWithParam<GrnParams>, 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<GrnParams>& obj) {
auto param = obj.param;
const auto& param = obj.param;
std::ostringstream result;
result << "bias=" << param.bias << "_";
result << "shape=" << param.pshape << "_";
Expand Down

0 comments on commit 477a57b

Please sign in to comment.