@@ -100,7 +100,8 @@ void PreStepsList::add_scale_impl(const std::vector<float>& values) {
100
100
}
101
101
102
102
void PreStepsList::add_clamp (double min_value, double max_value) {
103
- std::string name = " clamp(min " + std::to_string (min_value) + " , max " + std::to_string (max_value) + " )" ;
103
+ std::stringstream name_builder;
104
+ name_builder << " clamp(min " << min_value << " , max " << max_value << " )" ;
104
105
105
106
m_actions.emplace_back (
106
107
[min_value, max_value](const std::vector<Output<Node>>& nodes,
@@ -114,7 +115,7 @@ void PreStepsList::add_clamp(double min_value, double max_value) {
114
115
auto clamp_op = std::make_shared<ov::op::v0::Clamp>(node, min_value, max_value);
115
116
return std::make_tuple (std::vector<Output<Node>>{clamp_op}, true );
116
117
},
117
- name );
118
+ name_builder. str () );
118
119
}
119
120
120
121
void PreStepsList::add_mean_impl (const std::vector<float >& values) {
@@ -707,14 +708,15 @@ std::tuple<std::vector<Output<Node>>, bool> PreStepsList::cut_last_channel(const
707
708
708
709
// ------------- Post processing ------
709
710
void PostStepsList::add_clamp (double min_value, double max_value) {
710
- std::string name = " clamp(min " + std::to_string (min_value) + " , max " + std::to_string (max_value) + " )" ;
711
+ std::stringstream name_builder;
712
+ name_builder << " clamp(min " << min_value << " , max " << max_value << " )" ;
711
713
712
714
m_actions.emplace_back (
713
715
[min_value, max_value](const Output<Node>& node, PostprocessingContext& ctxt) {
714
716
auto clamp_op = std::make_shared<ov::op::v0::Clamp>(node, min_value, max_value);
715
717
return std::make_tuple (Output<Node>{clamp_op}, true );
716
718
},
717
- name );
719
+ name_builder. str () );
718
720
}
719
721
720
722
void PostStepsList::add_convert_impl (const element::Type& type) {
0 commit comments