eliminate_unsqueeze_gather.hpp
1 // Copyright (C) 2018-2021 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
3 //
4 
5 #pragma once
6 
7 #include <transformations_visibility.hpp>
8 
9 #include <ngraph/ngraph.hpp>
10 #include <ngraph/pass/graph_rewrite.hpp>
11 #include "ngraph/pattern/matcher.hpp"
12 
13 namespace ngraph {
14 namespace pass {
15 
16 class TRANSFORMATIONS_API EliminateUnsqueezeGather;
17 
18 } // namespace pass
19 } // namespace ngraph
20 
21 /**
22  * @ingroup ie_transformation_common_api
23  * @brief Remove Unsqueeze + Gather pair, if Gather gathers data by dimension
24  * that was previously added by Unsqueeze
25  */
26 
27 class ngraph::pass::EliminateUnsqueezeGather : public ngraph::pass::MatcherPass {
28 public:
29  NGRAPH_RTTI_DECLARATION;
31 };
Remove Unsqueeze + Gather pair, if Gather gathers data by dimension that was previously added by Unsq...
Definition: eliminate_unsqueeze_gather.hpp:27
ngraph namespace
Definition: add_fake_quantize_fusion.hpp:14