Skip to content

Commit

Permalink
TransposeSinking refactoring: part 2 (class names, folders, file name…
Browse files Browse the repository at this point in the history
…s) (#16291)

* Add descriptions to the transformations, add additional checks

* fix a warning

* TransposeSinking Rafactoring part2: move the transformations to a separate folder, align namespaces

* TransposeSinking refactoring: class names, namespaces

* codestyle

* resolve merge conflicts
  • Loading branch information
itikhono authored Mar 15, 2023
1 parent 28d3e10 commit e1ee8f0
Show file tree
Hide file tree
Showing 39 changed files with 720 additions and 691 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// Copyright (C) 2022-2023 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//

#pragma once

#include "openvino/pass/graph_rewrite.hpp"
#include "openvino/pass/pass.hpp"
#include "transformations_visibility.hpp"

namespace ov {
namespace pass {
namespace transpose_sinking {

class TRANSFORMATIONS_API TSBinaryForward;
class TRANSFORMATIONS_API TSBinaryBackward;

} // namespace transpose_sinking
} // namespace pass
} // namespace ov

/**
* @ingroup ie_transformation_common_api
* @brief TSBinaryForward transformation sinks Transpose through BinaryElementwiseArithmetic,
* BinaryElementwiseComparison, BinaryElementwiseLogical and PRelu operations in the forward direction.
*/
class ov::pass::transpose_sinking::TSBinaryForward : public ov::pass::MatcherPass {
public:
OPENVINO_RTTI("ov::pass::TSBinaryForward", "0");
TSBinaryForward();
};

/**
* @ingroup ie_transformation_common_api
* @brief TSBinaryBackward transformation sinks Transpose through BinaryElementwiseArithmetic,
* BinaryElementwiseComparison, BinaryElementwiseLogical and PRelu operations in the backward direction.
*/
class ov::pass::transpose_sinking::TSBinaryBackward : public ov::pass::MatcherPass {
public:
OPENVINO_RTTI("ov::pass::TSBinaryBackward", "0");
TSBinaryBackward();
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// Copyright (C) 2022-2023 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//

#pragma once

#include "openvino/pass/graph_rewrite.hpp"
#include "openvino/pass/pass.hpp"
#include "transformations_visibility.hpp"

namespace ov {
namespace pass {
namespace transpose_sinking {

class TRANSFORMATIONS_API TSConcatForward;
class TRANSFORMATIONS_API TSConcatBackward;

} // namespace transpose_sinking
} // namespace pass
} // namespace ov

/**
* @ingroup ie_transformation_common_api
* @brief TSConcatForward transformation sinks Transpose through Concat operation
* in the forward direction.
*/
class ov::pass::transpose_sinking::TSConcatForward : public ov::pass::MatcherPass {
public:
OPENVINO_RTTI("ov::pass::TSConcatForward", "0");
TSConcatForward();
};

/**
* @ingroup ie_transformation_common_api
* @brief TSConcatBackward transformation sinks Transpose through Concat operation
* in the backward direction.
*/
class ov::pass::transpose_sinking::TSConcatBackward : public ov::pass::MatcherPass {
public:
OPENVINO_RTTI("ov::pass::TSConcatBackward", "0");
TSConcatBackward();
};
Loading

0 comments on commit e1ee8f0

Please sign in to comment.