Skip to content

Commit b864e7f

Browse files
authored
[clean-up] Apply clang_format_fix_all on project (#28946)
### Details: - Apply OV formatter to avoid creates diff ### Related PRs: - #28974 ### Tickets: - N/A Signed-off-by: Raasz, Pawel <pawel.raasz@intel.com>
1 parent 8a85683 commit b864e7f

File tree

20 files changed

+116
-145
lines changed

20 files changed

+116
-145
lines changed

src/bindings/python/src/pyopenvino/utils/utils.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,7 @@ py::object from_ov_any(const ov::Any& any) {
192192
std::string property_name = it;
193193
auto mutability = it.get_mutability();
194194
std::string mutability_str;
195-
switch (mutability)
196-
{
195+
switch (mutability) {
197196
case ov::PropertyMutability::RW:
198197
mutability_str = "RW";
199198
break;

src/common/transformations/include/transformations/low_precision/mark_dequantization_subgraph.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ class TRANSFORMATIONS_API KeepConstPrecision : public ov::pass::MatcherPass {
7272
public:
7373
OPENVINO_MATCHER_PASS_RTTI("KeepConstPrecision");
7474
explicit KeepConstPrecision(const element::TypeVector& precisions,
75-
bool fold_subtract_const = false,
76-
bool fold_multiply_const = true);
75+
bool fold_subtract_const = false,
76+
bool fold_multiply_const = true);
7777
};
7878

7979
} // namespace pass

src/common/transformations/src/transformations/low_precision/mark_dequantization_subgraph.cpp

+15-14
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ we cannot perform swapping as this would break another part of the graph.
5656
ZP Const
5757
5858
59-
Input Convert Input
60-
│ │ │ │
61-
▼ ▼ ▼ ▼
59+
Input Convert Input
60+
│ │ │ │
61+
▼ ▼ ▼ ▼
6262
Scale Convert Reshape Reshape Convert Scale
6363
| │ (64,1,1,1) (1,64,1,1) │ │
6464
| │ │ │ │ |
65-
▼ ▼ ▼ ▼ ▼ ▼
65+
▼ ▼ ▼ ▼ ▼ ▼
6666
Reshape Subtract Subtract Reshape
6767
| | | |
6868
▼ ▼ ▼ ▼
@@ -73,13 +73,13 @@ Though, we can perform swapping if the shapes are same for all branches: e.g.
7373
ZP Const
7474
7575
76-
Input Convert Input
77-
│ │ │ │
78-
▼ ▼ ▼ ▼
76+
Input Convert Input
77+
│ │ │ │
78+
▼ ▼ ▼ ▼
7979
Convert Reshape Reshape Convert
8080
Scale │ (64,1,1,1) (64,1,1,1) │ Scale
8181
| │ │ │ │ |
82-
▼ ▼ ▼ ▼ ▼ ▼
82+
▼ ▼ ▼ ▼ ▼ ▼
8383
Reshape Subtract Subtract Reshape
8484
| | | |
8585
▼ ▼ ▼ ▼
@@ -104,8 +104,8 @@ Scale Convert Convert Input
104104
Subtract Reshape
105105
| |
106106
▼ ▼
107-
Multiply
108-
107+
Multiply
108+
109109
Step 2: the right part of the graph would be matched transforming the graph above into the final form:
110110
111111
ZP Const
@@ -150,17 +150,18 @@ bool can_swap(const PatternValueMap& pt_map,
150150
auto first_shape = target_inputs.begin()->get_node()->output(0).get_shape();
151151

152152
// Step 1 (see steps description in the comments above)
153-
if (std::all_of(std::next(target_inputs.begin()), target_inputs.end(),
153+
if (std::all_of(std::next(target_inputs.begin()),
154+
target_inputs.end(),
154155
[&](const ov::Input<ov::Node>& input) {
155156
return input.get_node()->get_output_partial_shape(0).is_static() &&
156157
input.get_node()->get_shape() == first_shape;
157158
})) {
158-
return true;
159+
return true;
159160
} else if (first_node->get_output_partial_shape(0).is_static() &&
160161
second_node->get_output_partial_shape(0).is_static() &&
161162
first_node->get_output_shape(0) == second_node->get_output_shape(0)) {
162-
// Step 2
163-
return true;
163+
// Step 2
164+
return true;
164165
}
165166
}
166167
}

0 commit comments

Comments
 (0)