Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[TRANSFORMATIONS | GPU] Add a Validate pass after MoveEltwiseUpThroughDataMovScalar for element type resolution (#27464)

Andrii Staikovacccb227fba1
diff --git a/src/plugins/intel_gpu/src/plugin/transformations_pipeline.cpp b/src/plugins/intel_gpu/src/plugin/transformations_pipeline.cpp
index 158dee2ee7a..db93696865a 100644
--- a/src/plugins/intel_gpu/src/plugin/transformations_pipeline.cpp
+++ b/src/plugins/intel_gpu/src/plugin/transformations_pipeline.cpp
@@ -824,6 +824,11 @@ void TransformationsPipeline::apply(std::shared_ptr<ov::Model> func) {
ov::op::v3::Broadcast::get_type_info_static(),
};
manager.register_pass<ov::pass::MoveEltwiseUpThroughDataMovScalar>(allowed_data_movement_ops);
+ // FIXME (151111): this Validate is added as a workaround for resolving element
+ // types after MoveEltwiseUpThroughDataMovScalar. It has to be removed
+ // after 141764 is fixed as there's a clear issue with Validate passes
+ // not working properly.
+ manager.register_pass<ov::pass::Validate>();
manager.register_pass<ov::intel_gpu::ClampFP16Output>();
manager.register_pass<ov::intel_gpu::ConvertMatMulToFullyConnected>();