Skip to content

Commit f734856

Browse files
committed
Remove unused create_clamp_function
1 parent f81729e commit f734856

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/core/tests/preprocess.cpp

-18
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,6 @@ static std::shared_ptr<Model> create_simple_function(element::Type type, const P
2727
res->get_output_tensor(0).set_names({"tensor_output1"});
2828
return std::make_shared<Model>(ResultVector{res}, ParameterVector{data1});
2929
}
30-
static std::shared_ptr<Model> create_clamp_function(element::Type type,
31-
const PartialShape& shape,
32-
float min_value,
33-
float max_value) {
34-
auto data = std::make_shared<op::v0::Parameter>(type, shape);
35-
data->set_friendly_name("input");
36-
data->get_output_tensor(0).set_names({"tensor_input"});
37-
38-
auto clamp_op = std::make_shared<op::v0::Clamp>(data, min_value, max_value);
39-
clamp_op->set_friendly_name("Clamp");
40-
clamp_op->get_output_tensor(0).set_names({"tensor_clamp"});
41-
42-
auto result = std::make_shared<op::v0::Result>(clamp_op);
43-
result->set_friendly_name("Result");
44-
result->get_output_tensor(0).set_names({"tensor_output"});
45-
46-
return std::make_shared<Model>(ResultVector{result}, ParameterVector{data});
47-
}
4830

4931
static std::shared_ptr<Model> create_trivial(element::Type type, const PartialShape& shape) {
5032
auto data1 = std::make_shared<op::v0::Parameter>(type, shape);

0 commit comments

Comments
 (0)