Open iefode opened 3 months ago
.take
Thank you for looking into this issue! Please let us know if you have any questions or require any help.
[ RUN ] conformance_Reshape/ReadIRTest.Inference/Op=Reshape.1_Type=i64_Shape=dynamic_IR=c5ff38504273a230addadadf4fef517ef73154c5f9f10ef2ace961b1dc3cb794_Device=TEMPLATE_Config=()
MEM_USAGE=44600KB
[ CONFORMANCE ] Influence coefficient: 0.000946854
[ PLUGIN ] SubgraphBaseTest::compile_model()
is started
[ PLUGIN ] SubgraphBaseTest::compile_model()
is finished successfully. Duration is 0.00809249s
[ PLUGIN ] SubgraphBaseTest::get_plugin_outputs()
is started
[ REFERENCE ] SubgraphBaseTest::calculate_refs()
is started
[ REFERENCE ] Calculate reference in runtime
[ REFERENCE ] SubgraphBaseTest::calculate_refs()
is started
src/tests/functional/shared_test_classes/src/base/ov_subgraph.cpp:94: Failure
Exception from src/inference/src/cpp/infer_request.cpp:223:
Check 'backward_compatible_check || in_out_elements_equal' failed at src/core/shape_inference/include/reshape_shape_inference.hpp:354:
While validating node 'opset1::Reshape Reshape-1 (opset1::Parameter Reshape-1_0[0]:i64[1,1], opset1::Parameter Reshape-1_1[0]:i64[2]) -> (i64[?,?])' with friendly_name 'Reshape-1':
Shape inference input shapes {[1,1],[2]}
Requested output shape [5,4] is incompatible with input shape
[ FAILED ] conformance_Reshape/ReadIRTest.Inference/Op=Reshape.1_Type=i64_Shape=dynamic_IR=c5ff38504273a230addadadf4fef517ef73154c5f9f10ef2ace961b1dc3cb794_Device=TEMPLATE_Config=(), where GetParam() = ("/home/Projects/yunsunghan/openvino/src/tests/test_utils/functional_test_utils/layer_tests_summary/temp/models/2023.3.0-13657-d5b0f4d2d73/operation/dynamic/Reshape-1/i64/c5ff38504273a230addadadf4fef517ef73154c5f9f10ef2ace961b1dc3cb794.xml", "") (63 ms)
@iefode
It appears that a problem occurs when -1 is written in dimension.
In the above problem, if the dimension is written as -1, how can it be reshaped? Do I need to enter the appropriate number?
ex.) input { [-1, -1], [4] } output {[-1, -1, -1, -1]} With the current implementation, the output of the example above is as follows: input shape {[1, 1], [4]) output {[5, 4, 1, 4]} The problem appears to occur because the above input shape and output shape are different. So it seems that the resolve_minus_one_dim() function in the reshape_shape_inference.hpp file needs to be modified.
Please review the direction of progress.
@22ema
Thanks for taking the issue!
Please, check the Openvino Reshape operator specification to get more details for the operator. https://docs.openvino.ai/2022.3/openvino_docs_ops_shape_Reshape_1.html
Moreover, -1 in the input dims can be interpreted as dynamic.
Hello @22ema!
What is the status of the issue? Please, let us know in case of any issues
We will unassign the ticket from you in case of inaction
Context
OP conformance suite is validation tool checks a plugin conditions from operation implementation status perspective. OP conformance is based on extracted from OMZ model scope operations and graphs by
ov_subgraphs_dumper
tool. Extracted graphs are saved as IR (OpenVINO Intermediate representation) and is stored in the public share. OP conformance suite contains the following test types:OpImplCheck
validates operation support by plugin. Returntrue
orfalse
.Inference
compare device inference results vs reference over extracted IR as a model. We generate synthetic tensors to get a result. Possible results arepassed
,failed
,hanged
(interrupted by timeout),crashed
andskipped
(just in case-shape_mode
is misaligned with graph inputs).QueryModel
check possibility of graph execution per device. Have the same status asInference
ImportExport
exports compiled model, imports it and check that models are same. Have the same status asInference
Template is a simple plugin run inference using reference implementation. It means if we will run conformance over template, we should compare
TEMPLATE
vsTEMPLATE
results. Sometimes we have bugs inside the plugin, reference implementation or test infrastructure leads to negative test result.What needs to be done?
Description: We have several Reshape tests failed in operation conformance over TEMPLATE plugin. Do contributor should fix them:
conformance_Reshape/ReadIRTest.Inference/Op=Reshape.1_Type=i64_Shape=dynamic_IR=c5ff38504273a230addadadf4fef517ef73154c5f9f10ef2ace961b1dc3cb794_Device=TEMPLATE_Config=()
conformance_Reshape/ReadIRTest.Inference/Op=Reshape.1_Type=f32_Shape=dynamic_IR=5aaa81d6f07ed880b1e93a0fce7b6aab4c3c88bfb1b4b6cda4ead15eb145af63_Device=TEMPLATE_Config=()
conformance_Reshape/ReadIRTest.Inference/Op=Reshape.1_Type=f32_Shape=dynamic_IR=c078bcf5a6a207fd76d9cddc1a35df577529e71ba0a120b28c7ed17bd12673bb_Device=TEMPLATE_Config=()
conformance_Reshape/ReadIRTest.Inference/Op=Reshape.1_Type=f32_Shape=dynamic_IR=9c32e47cd885805256c3e3053412f7d8c448762b4b509507f6e4dd78e2aeb56c_Device=TEMPLATE_Config=()
conformance_Reshape/ReadIRTest.Inference/Op=Reshape.1_Type=f32_Shape=dynamic_IR=469d09b261b88011c82288ea622dde06d63805eb41dc256c901b0d206ac5780b_Device=TEMPLATE_Config=()
conformance_Reshape/ReadIRTest.Inference/Op=Reshape.1_Type=f32_Shape=dynamic_IR=c359e1ea71a80fc519e8a2dacfc7f52f5a94a1142058641b0434f40866875c12_Device=TEMPLATE_Config=()
conformance_Reshape/ReadIRTest.Inference/Op=Reshape.1_Type=f32_Shape=dynamic_IR=0bbbd97c4428b9565666e9a1e56acc70035b378e16abafc54559a155583d9e6b_Device=TEMPLATE_Config=()
How to reproduce:
ov_op_conformance_tests
targetMEM_USAGE=71872KB [ CONFORMANCE ] Influence coefficient: 0.000946854 [ PLUGIN ]
SubgraphBaseTest::compile_model()
is started [ PLUGIN ]SubgraphBaseTest::compile_model()
is finished successfully. Duration is 0.0796472s [ PLUGIN ]SubgraphBaseTest::get_plugin_outputs()
is started /home/efode/repo/openvino/src/tests/functional/shared_test_classes/src/base/ov_subgraph.cpp:94: Failure Exception from src/inference/src/cpp/infer_request.cpp:223: Check 'backward_compatible_check || in_out_elements_equal' failed at src/core/shape_inference/include/reshape_shape_inference.hpp:354: While validating node 'opset1::Reshape Reshape-1 (opset1::Parameter Reshape-1_0[0]:i64[1,1], opset1::Parameter Reshape-1_1[0]:i64[2]) -> (i64[?,?])' with friendly_name 'Reshape-1': Shape inference input shapes {[1,1],[2]} Requested output shape [5,4] is incompatible with input shape[ FAILED ] conformance_Reshape/ReadIRTest.Inference/Op=Reshape.1_Type=i64_Shape=dynamic_IR=c5ff38504273a230addadadf4fef517ef73154c5f9f10ef2ace961b1dc3cb794_Device=TEMPLATE_Config=(), where GetParam() = ("/home/efode/repo/openvino/src/tests/test_utils/functional_test_utils/layer_tests_summary/temp/models/2023.3.0-13657-d5b0f4d2d73/operation/dynamic/Reshape-1/i64/c5ff38504273a230addadadf4fef517ef73154c5f9f10ef2ace961b1dc3cb794.xml", "") (340 ms)
openvino/bin/intel64/Release/ov_op_conformance_tests --device=TEMPLATE --input_folders=openvino/src/tests/test_utils/functional_test_utils/layer_tests_summary/temp/models/conformance_ir_files.lst, --report_unique_name --output_folder="openvino/src/tests/test_utils/functional_test_utils/layer_tests_summary/temp/report/parallel" --gtest_filter="conformance_Reshape/ReadIRTest.Inference/Op=Reshape.1_Type=i64_Shape=dynamic_IR=c5ff38504273a230addadadf4fef517ef73154c5f9f10ef2ace961b1dc3cb794_Device=TEMPLATE_Config=()" --config_path="" --shape_mode=