Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tmpl test] GRN: enable whole Tensor comparison #23993

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading