Migrate shape infers to new IStaticShapeInfer API (#18579)

* Add static shape adapter
- Adapters holds CPU dimension which can be reference to it or vector
- Add ov::optional for holding optional result from shape inference
- Add new `infer` function in `IStaticShapeInfer`

* Temporary support of StaticShape

* Minor corrections in ShapeInferenceTA

* Migrate shape_infer to new interface version

* Replace StaticShape by adapter implementation

* Replace IShapeInferCommon by IStaticShapeInfer

* Correct code formatting

* Fix build issues

* NodeValidationFailure::create for StaticShapeRef
This commit is contained in:
Pawel Raasz authored and GitHub committed 2023-07-24 15:59:18 +02:00
1 parent ec8fe6353a
commit 5eab1be682
209 files changed
+2014 -2968

No files matched your search

@@ -66,8 +66,7 @@ void ov::op::internal::AUGRUCell::validate_and_infer_types() {
OPENVINO_SUPPRESS_DEPRECATED_START
const auto input_shapes = get_node_input_partial_shapes(*this);
OPENVINO_SUPPRESS_DEPRECATED_END
std::vector<ov::PartialShape> output_shapes = {ov::PartialShape::dynamic(2)};
shape_infer(this, input_shapes, output_shapes);
std::vector<ov::PartialShape> output_shapes = shape_infer(this, input_shapes);
// Set output type and shape
set_output_type(0, result_et, output_shapes[0]);
@@ -64,8 +64,7 @@ void ov::op::internal::AUGRUSequence::validate_and_infer_types() {
OPENVINO_SUPPRESS_DEPRECATED_START
const auto input_shapes = get_node_input_partial_shapes(*this);
OPENVINO_SUPPRESS_DEPRECATED_END
std::vector<ov::PartialShape> output_shapes = {ov::PartialShape::dynamic(4), ov::PartialShape::dynamic(3)};
shape_infer(this, input_shapes, output_shapes);
std::vector<ov::PartialShape> output_shapes = shape_infer(this, input_shapes);
// Set output size, type and shape
set_output_size(2);