codestyle

This commit is contained in:
Tikhonov Ivan
2023-03-14 14:43:50 +00:00
parent b3342f7c46
commit ee42aaf13b
27 changed files with 63 additions and 66 deletions

View File

@@ -15,7 +15,7 @@ namespace transpose_sinking {
class TRANSFORMATIONS_API TSBinaryForward;
class TRANSFORMATIONS_API TSBinaryBackward;
}
} // namespace transpose_sinking
} // namespace pass
} // namespace ov

View File

@@ -15,9 +15,9 @@ namespace transpose_sinking {
class TRANSFORMATIONS_API TSConcatForward;
class TRANSFORMATIONS_API TSConcatBackward;
} // namespace transpose_sinking
} // namespace pass
} // namespace ov
}
/**
* @ingroup ie_transformation_common_api

View File

@@ -15,9 +15,9 @@ namespace transpose_sinking {
class TRANSFORMATIONS_API TSDataMovementForward;
class TRANSFORMATIONS_API TSDataMovementBackward;
} // namespace transpose_sinking
} // namespace pass
} // namespace ov
}
/**
* @ingroup ie_transformation_common_api

View File

@@ -14,9 +14,9 @@ namespace transpose_sinking {
class TRANSFORMATIONS_API TSFuse;
} // namespace transpose_sinking
} // namespace pass
} // namespace ov
}
/**
* @ingroup ie_transformation_common_api

View File

@@ -15,9 +15,9 @@ class TRANSFORMATIONS_API TSGeneralForward;
class TRANSFORMATIONS_API TSGeneralBackward;
class TRANSFORMATIONS_API TSGeneral;
} // namespace transpose_sinking
} // namespace pass
} // namespace ov
}
/**
* @ingroup ie_transformation_common_api

View File

@@ -15,9 +15,9 @@ namespace transpose_sinking {
class TRANSFORMATIONS_API TSInterpolateForward;
class TRANSFORMATIONS_API TSInterpolateBackward;
} // namespace transpose_sinking
} // namespace pass
} // namespace ov
}
/**
* @ingroup ie_transformation_common_api

View File

@@ -15,9 +15,9 @@ namespace transpose_sinking {
class TRANSFORMATIONS_API TSReductionForward;
class TRANSFORMATIONS_API TSReductionBackward;
} // namespace transpose_sinking
} // namespace pass
} // namespace ov
}
/**
* @ingroup ie_transformation_common_api

View File

@@ -15,9 +15,9 @@ namespace transpose_sinking {
class TRANSFORMATIONS_API TSSplitBackward;
class TRANSFORMATIONS_API TSSplitForward;
} // namespace transpose_sinking
} // namespace pass
} // namespace ov
}
/**
* @ingroup ie_transformation_common_api

View File

@@ -14,9 +14,9 @@ namespace transpose_sinking {
class TRANSFORMATIONS_API TSUnaryForward;
class TRANSFORMATIONS_API TSUnaryBackward;
} // namespace transpose_sinking
} // namespace pass
} // namespace ov
}
/**
* @ingroup ie_transformation_common_api

View File

@@ -4,12 +4,12 @@
#pragma once
#include "transformations/utils/utils.hpp"
#include <utility>
#include "openvino/op/util/op_types.hpp"
#include "openvino/opsets/opset10.hpp"
#include "openvino/util/common_util.hpp"
#include "transformations/utils/utils.hpp"
namespace ov {
namespace pass {
@@ -109,7 +109,7 @@ ov::Output<ov::Node> ChangeValuesOrder(const ov::Output<ov::Node>& input,
const ov::AxisVector& transpose_axis_order,
const std::shared_ptr<ov::opset10::Constant>& axis);
} // namespace utils
} // namespace transpose_sinking
}
}
}
} // namespace pass
} // namespace ov

View File

@@ -5,8 +5,8 @@
#include "transformations/transpose_sinking/ts_binary.hpp"
#include "itt.hpp"
#include "openvino/opsets/opset10.hpp"
#include "openvino/op/util/op_types.hpp"
#include "openvino/opsets/opset10.hpp"
#include "openvino/pass/pattern/op/or.hpp"
#include "openvino/pass/pattern/op/wrap_type.hpp"
#include "transformations/rt_info/transpose_sinking_attr.hpp"

View File

@@ -8,8 +8,8 @@
#include "openvino/op/util/op_types.hpp"
#include "openvino/opsets/opset10.hpp"
#include "openvino/pass/pattern/op/wrap_type.hpp"
#include "transformations/transpose_sinking/ts_utils.hpp"
#include "transformations/rt_info/transpose_sinking_attr.hpp"
#include "transformations/transpose_sinking/ts_utils.hpp"
using namespace ov;
using namespace ov::opset10;

View File

@@ -9,8 +9,8 @@
#include "openvino/opsets/opset10.hpp"
#include "openvino/pass/pattern/op/wrap_type.hpp"
#include "openvino/util/common_util.hpp"
#include "transformations/transpose_sinking/ts_utils.hpp"
#include "transformations/rt_info/transpose_sinking_attr.hpp"
#include "transformations/transpose_sinking/ts_utils.hpp"
using namespace ov;
using namespace ov::opset10;

View File

@@ -4,12 +4,11 @@
#include "transformations/transpose_sinking/ts_general.hpp"
#include "itt.hpp"
#include "openvino/pass/constant_folding.hpp"
#include "openvino/pass/graph_rewrite.hpp"
#include "openvino/pass/manager.hpp"
#include "openvino/pass/pattern/op/wrap_type.hpp"
#include "itt.hpp"
#include "transformations/transpose_sinking/ts_binary.hpp"
#include "transformations/transpose_sinking/ts_concat.hpp"
#include "transformations/transpose_sinking/ts_data_movement.hpp"

View File

@@ -4,15 +4,14 @@
#include "transformations/transpose_sinking/ts_interpolate.hpp"
#include "openvino/pass/pattern/op/or.hpp"
#include "itt.hpp"
#include "openvino/op/util/op_types.hpp"
#include "openvino/opsets/opset10.hpp"
#include "openvino/pass/pattern/op/or.hpp"
#include "openvino/pass/pattern/op/wrap_type.hpp"
#include "openvino/util/common_util.hpp"
#include "transformations/transpose_sinking/ts_utils.hpp"
#include "transformations/rt_info/transpose_sinking_attr.hpp"
#include "transformations/transpose_sinking/ts_utils.hpp"
using namespace ov;
using namespace ov::opset10;

View File

@@ -168,7 +168,7 @@ TSReductionBackward::TSReductionBackward() {
auto reduce_or_squeeze_label = pattern::
wrap_type<op::util::ArithmeticReductionKeepDims, op::util::LogicalReductionKeepDims, Squeeze, Unsqueeze>(
{pattern::any_input(), pattern::wrap_type<Constant>()},
HasSameOutputTransposeNodes);
HasSameOutputTransposeNodes);
auto transpose_label = pattern::wrap_type<Transpose>({reduce_or_squeeze_label, pattern::wrap_type<Constant>()});
ov::matcher_pass_callback matcher_pass_callback = [=](pattern::Matcher& m) {
const auto& pattern_to_output = m.get_pattern_value_map();

View File

@@ -9,8 +9,8 @@
#include "openvino/opsets/opset10.hpp"
#include "openvino/pass/pattern/op/label.hpp"
#include "openvino/pass/pattern/op/wrap_type.hpp"
#include "transformations/transpose_sinking/ts_utils.hpp"
#include "transformations/rt_info/transpose_sinking_attr.hpp"
#include "transformations/transpose_sinking/ts_utils.hpp"
#include "transformations/utils/utils.hpp"
using namespace ov::pass::pattern;

View File

@@ -9,8 +9,8 @@
#include "itt.hpp"
#include "openvino/opsets/opset10.hpp"
#include "openvino/pass/pattern/op/wrap_type.hpp"
#include "transformations/transpose_sinking/ts_utils.hpp"
#include "transformations/rt_info/transpose_sinking_attr.hpp"
#include "transformations/transpose_sinking/ts_utils.hpp"
#include "transformations/utils/utils.hpp"
using namespace ov;

View File

@@ -379,7 +379,7 @@ void RemoveSingleOutputConsumers(const NodePtr& node) {
}
}
} // namespace utils
} // namespace transpose_sinking
}
}
}
} // namespace pass
} // namespace ov

View File

@@ -2,14 +2,15 @@
// SPDX-License-Identifier: Apache-2.0
//
#include <functional>
#include "openvino/frontend/manager.hpp"
#include "openvino/opsets/opset10.hpp"
#include "openvino/pass/manager.hpp"
#include "transformations/transpose_sinking/ts_binary.hpp"
#include <functional>
#include "common_test_utils/ngraph_test_utils.hpp"
#include "gtest/gtest.h"
#include "openvino/frontend/manager.hpp"
#include "openvino/opsets/opset10.hpp"
#include "openvino/pass/manager.hpp"
#include "ts_test_utils.hpp"
using namespace ov;
@@ -1219,6 +1220,6 @@ INSTANTIATE_TEST_SUITE_P(TSBinaryBackwardBinaryMultiConsumersTestSuite,
} // namespace mult_consumers
} // namespace transpose_sinking_binary_eltwise
}
}
} // namespace binary
} // namespace testing
} // namespace transpose_sinking

View File

@@ -2,11 +2,10 @@
// SPDX-License-Identifier: Apache-2.0
//
#include "openvino/opsets/opset10.hpp"
#include "openvino/pass/manager.hpp"
#include "common_test_utils/ngraph_test_utils.hpp"
#include "gtest/gtest.h"
#include "openvino/opsets/opset10.hpp"
#include "openvino/pass/manager.hpp"
#include "transformations/transpose_sinking/ts_binary.hpp"
#include "transformations/transpose_sinking/ts_concat.hpp"
#include "transformations/transpose_sinking/ts_data_movement.hpp"

View File

@@ -2,16 +2,17 @@
// SPDX-License-Identifier: Apache-2.0
//
#include <functional>
#include "openvino/frontend/manager.hpp"
#include "openvino/opsets/opset10.hpp"
#include "openvino/pass/manager.hpp"
#include "transformations/transpose_sinking/ts_concat.hpp"
#include "transformations/transpose_sinking/ts_utils.hpp"
#include "transformations/init_node_info.hpp"
#include <functional>
#include "common_test_utils/ngraph_test_utils.hpp"
#include "gtest/gtest.h"
#include "openvino/frontend/manager.hpp"
#include "openvino/opsets/opset10.hpp"
#include "openvino/pass/manager.hpp"
#include "transformations/init_node_info.hpp"
#include "transformations/transpose_sinking/ts_utils.hpp"
#include "ts_test_utils.hpp"
using namespace ov;

View File

@@ -2,15 +2,16 @@
// SPDX-License-Identifier: Apache-2.0
//
#include <functional>
#include "openvino/frontend/manager.hpp"
#include "openvino/opsets/opset10.hpp"
#include "openvino/pass/manager.hpp"
#include "transformations/transpose_sinking/ts_general.hpp"
#include "transformations/init_node_info.hpp"
#include <functional>
#include "common_test_utils/ngraph_test_utils.hpp"
#include "gtest/gtest.h"
#include "openvino/frontend/manager.hpp"
#include "openvino/opsets/opset10.hpp"
#include "openvino/pass/manager.hpp"
#include "transformations/init_node_info.hpp"
using namespace testing;
using namespace ov::opset10;

View File

@@ -2,15 +2,16 @@
// SPDX-License-Identifier: Apache-2.0
//
#include <functional>
#include "openvino/frontend/manager.hpp"
#include "openvino/opsets/opset10.hpp"
#include "openvino/pass/manager.hpp"
#include "transformations/transpose_sinking/ts_split.hpp"
#include "transformations/init_node_info.hpp"
#include <functional>
#include "common_test_utils/ngraph_test_utils.hpp"
#include "gtest/gtest.h"
#include "openvino/frontend/manager.hpp"
#include "openvino/opsets/opset10.hpp"
#include "openvino/pass/manager.hpp"
#include "transformations/init_node_info.hpp"
#include "ts_test_utils.hpp"
using namespace ov;
@@ -766,9 +767,8 @@ using TestSplitBackwardRestrictParams = std::tuple<PassFactoryPtr,
element::Type, /* input type */
TransposeInsertFuncDesc>; /* insert transpose function */
class TSSplitBackwardRestrictTestFixture
: public ::testing::WithParamInterface<TestSplitBackwardRestrictParams>,
public TransformationTestsF {
class TSSplitBackwardRestrictTestFixture : public ::testing::WithParamInterface<TestSplitBackwardRestrictParams>,
public TransformationTestsF {
public:
static std::string get_test_name(const ::testing::TestParamInfo<TestSplitBackwardRestrictParams>& obj) {
PassFactoryPtr pass_factory;

View File

@@ -4,12 +4,11 @@
#include "ts_test_utils.hpp"
#include "gtest/gtest.h"
#include "openvino/frontend/manager.hpp"
#include "openvino/opsets/opset10.hpp"
#include "openvino/pass/manager.hpp"
#include "gtest/gtest.h"
using namespace std;
using namespace ov;
using namespace ov::opset10;
@@ -84,6 +83,6 @@ std::shared_ptr<ov::Node> parameter(ov::element::Type el_type, const PartialShap
return std::make_shared<Parameter>(el_type, ps);
}
} // utils
} // namespace utils
} // namespace testing
} // namespace transpose_sinking

View File

@@ -4,13 +4,12 @@
#pragma once
#include "common_test_utils/ngraph_test_utils.hpp"
#include "gtest/gtest.h"
#include "openvino/frontend/manager.hpp"
#include "openvino/opsets/opset10.hpp"
#include "openvino/pass/manager.hpp"
#include "common_test_utils/ngraph_test_utils.hpp"
#include "gtest/gtest.h"
namespace transpose_sinking {
namespace testing {
namespace utils {
@@ -68,6 +67,6 @@ std::shared_ptr<ov::Node> constant(ov::element::Type el_type, const ov::Shape& s
return ov::opset10::Constant::create<T>(el_type, shape, value);
}
} // utils
} // namespace utils
} // namespace testing
} // namespace transpose_sinking

View File

@@ -4,12 +4,11 @@
#include "transformations/transpose_sinking/ts_unary.hpp"
#include "common_test_utils/ngraph_test_utils.hpp"
#include "gtest/gtest.h"
#include "openvino/frontend/manager.hpp"
#include "openvino/opsets/opset10.hpp"
#include "openvino/pass/manager.hpp"
#include "common_test_utils/ngraph_test_utils.hpp"
#include "gtest/gtest.h"
#include "ts_test_utils.hpp"
using namespace ov;