Skip to content

Fix NonZero output shape inference for static inputs.#4406

Merged
e-nugmanova merged 6 commits intoopenvinotoolkit:masterfrom
jdanieck:fix_serialization_dynamizm_nonzero
Mar 1, 2021
Merged

Fix NonZero output shape inference for static inputs.#4406
e-nugmanova merged 6 commits intoopenvinotoolkit:masterfrom
jdanieck:fix_serialization_dynamizm_nonzero

Conversation

@jdanieck
Copy link
Copy Markdown
Contributor

Ticket. 29898. Serialization fails for NonZero op because it contain dynamic dimension which cannot be resolved (no upper bound). Improved error message for this case.

@jdanieck
Copy link
Copy Markdown
Contributor Author

@GlebKazantaev @ilyachur we can't serialize PyTorch_MaskRCNN_ResNet50_FPN_wo_cfg_wo_infer_batch_1_device_CPU_fusing_True_precision because of NonZero op with dynamic dimension which can't be converted to static (it doesn't have upper_bound) . When I set upper_bound to some arbitrary value serialization works. Should we mark this test as expected to fail? Or maybe we should use some arbitrary value for upper_bound in such cases? Any ideas ?

@jdanieck jdanieck self-assigned this Feb 18, 2021
@jdanieck jdanieck added the category: transformations OpenVINO Runtime library - Transformations label Feb 18, 2021
@jdanieck jdanieck marked this pull request as ready for review February 24, 2021 12:38
@jdanieck jdanieck requested a review from e-nugmanova February 24, 2021 12:39
@jdanieck jdanieck requested a review from a team February 24, 2021 16:09
@jdanieck jdanieck changed the title Improved error checking in serialization dynamism resolving. Fix NonZero output shape inference for static inputs. Feb 24, 2021
@jdanieck jdanieck requested a review from a team February 24, 2021 16:35
@jdanieck
Copy link
Copy Markdown
Contributor Author

I run serialization test suite on this PR and it confirm that issue with NonZero serialization is resolved.

@jdanieck jdanieck requested a review from e-nugmanova February 26, 2021 14:32
@jdanieck
Copy link
Copy Markdown
Contributor Author

@jane-intel please re-review. Do you want to run additional tests on this PR as you mentioned before?

@e-nugmanova e-nugmanova merged commit 5f14fe9 into openvinotoolkit:master Mar 1, 2021
@jdanieck jdanieck deleted the fix_serialization_dynamizm_nonzero branch March 1, 2021 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: transformations OpenVINO Runtime library - Transformations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants