@@ -111,12 +111,6 @@ void PreStepsList::add_clamp(double min_value, double max_value) {
111
111
" RGB/BGR color format using 'PreProcessSteps::convert_color'" );
112
112
113
113
const auto & node = nodes.front ();
114
- const auto & element_type = node.get_element_type ();
115
- OPENVINO_ASSERT (element_type.is_real (),
116
- " Clamp preprocessing can be applied to 'double' inputs. Consider using "
117
- " 'convert_element_type' before clamping. Current type is: " ,
118
- element_type);
119
-
120
114
auto clamp_op = std::make_shared<ov::op::v0::Clamp>(node, min_value, max_value);
121
115
return std::make_tuple (std::vector<Output<Node>>{clamp_op}, true );
122
116
},
@@ -717,12 +711,6 @@ void PostStepsList::add_clamp(double min_value, double max_value) {
717
711
718
712
m_actions.emplace_back (
719
713
[min_value, max_value](const Output<Node>& node, PostprocessingContext& ctxt) {
720
- auto element_type = node.get_element_type ();
721
- OPENVINO_ASSERT (element_type.is_real (),
722
- " Clamp postprocessing can be applied to 'double' inputs. Consider using "
723
- " 'convert_element_type' before clamping. Current type is: " ,
724
- element_type);
725
-
726
714
auto clamp_op = std::make_shared<ov::op::v0::Clamp>(node, min_value, max_value);
727
715
return std::make_tuple (Output<Node>{clamp_op}, true );
728
716
},
0 commit comments