OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[TEMPLATE] Add test for GatherND reference calculations (#36525)
Pawel Raasz28ecfb1b7662
diff --git a/src/plugins/template/tests/functional/shared_tests_instances/single_layer_tests/gather_nd.cpp b/src/plugins/template/tests/functional/shared_tests_instances/single_layer_tests/gather_nd.cppindex d7d45463a15..e17ebb18e34 100644--- a/src/plugins/template/tests/functional/shared_tests_instances/single_layer_tests/gather_nd.cpp+++ b/src/plugins/template/tests/functional/shared_tests_instances/single_layer_tests/gather_nd.cpp@@ -52,4 +52,22 @@ TEST_F(GatherNDLayerTemplateTest, smoke_dynamic_v8_nonzero) {run();}++TEST_F(GatherNDLayerTemplateTest, smoke_static_v5_nonzero) {+ const auto input_shapes =+ std::vector<InputShape>{InputShape{ov::PartialShape({8, 32}), std::vector<ov::Shape>{ov::Shape{8, 32}}}};+ init_input_shapes(input_shapes);+ function = make_nonzero_gather_model<op::v5::GatherND>(inputDynamicShapes.at(0), 0);++ run();+}++TEST_F(GatherNDLayerTemplateTest, smoke_static_v8_nonzero) {+ const auto input_shapes =+ std::vector<InputShape>{InputShape{ov::PartialShape({8, 32}), std::vector<ov::Shape>{ov::Shape{8, 32}}}};+ init_input_shapes(input_shapes);+ function = make_nonzero_gather_model<op::v8::GatherND>(inputDynamicShapes.at(0), 0);++ run();+}} // namespace ov::test