Partial shape serialization and deserialization in nGraph (#8859)

* Added support of partial shape serialization and deserialization.

* Small correction.

* Conflicts resolve.

* Clang-format.

* Fixed checks.

* Added partial shape, dimension support in visitor.

* Code style.

* Code style.

* Fixed IR reader parameter extender for partial shape.

* Moved IR reader changes to MO PR.

* Added rank check.

* Fixed dimension test.

* Code refactoring.

* Undo refactor.

* Code style

* Removed unnecessary code changes from cnn network.

* Extended visitor tests for PartialShape.

* Code style

* Removed code duplications, added dynamic rank test.

* Code style.

* Added negative tests for deserialization.

* Align with changes on master.

* Changed ov::Function to ov::Model.

* Fixed tests.

* Small fix.

* Fixed tests.

* Code style.
This commit is contained in:
Anastasia Popova
2021-12-14 00:09:45 +03:00
committed by GitHub
parent 28756d6ccf
commit c39dba62b0
20 changed files with 754 additions and 89 deletions

View File

@@ -30,7 +30,7 @@ def test_dimension():
assert dim.is_dynamic
assert dim.get_min_length() == 5
assert dim.get_max_length() == 15
assert repr(dim) == "<Dimension: [5, 15]>"
assert repr(dim) == "<Dimension: 5..15>"
def test_dimension_comparisons():
@@ -129,7 +129,7 @@ def test_partial_shape():
assert ps.rank == Dimension.dynamic()
assert list(ps.get_min_shape()) == []
assert list(ps.get_max_shape()) == []
assert repr(ps) == "<PartialShape: ?>"
assert repr(ps) == "<PartialShape: ...>"
ps = PartialShape.dynamic(r=Dimension(2))
assert not ps.is_static

View File

@@ -30,7 +30,7 @@ def test_dimension():
assert dim.is_dynamic
assert dim.get_min_length() == 5
assert dim.get_max_length() == 15
assert repr(dim) == "<Dimension: [5, 15]>"
assert repr(dim) == "<Dimension: 5..15>"
def test_dimension_comparisons():
@@ -129,7 +129,7 @@ def test_partial_shape():
assert ps.rank == Dimension.dynamic()
assert list(ps.get_min_shape()) == []
assert list(ps.get_max_shape()) == []
assert repr(ps) == "<PartialShape: ?>"
assert repr(ps) == "<PartialShape: ...>"
ps = PartialShape.dynamic(r=Dimension(2))
assert not ps.is_static