convert_gather_0d.hpp
1 // Copyright (C) 2018-2021 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
3 //
4 
5 #pragma once
6 
7 #include <vector>
8 #include <memory>
9 
10 #include <transformations_visibility.hpp>
11 
12 #include <ngraph/pass/graph_rewrite.hpp>
13 
14 
15 namespace ngraph {
16 namespace pass {
17 
18 class TRANSFORMATIONS_API ConvertGather0D;
19 
20 } // namespace pass
21 } // namespace ngraph
22 
23 /**
24  * @ingroup ie_transformation_common_api
25  * @brief ConvertGather0D decomposes v1::Gather operation into v0::Unsqueeze + v1::Gather + v0::Squeeze pattern when gather indices is scalar
26  */
27 class ngraph::pass::ConvertGather0D : public ngraph::pass::MatcherPass {
28 public:
29  NGRAPH_RTTI_DECLARATION;
31 };
ConvertGather0D decomposes v1::Gather operation into v0::Unsqueeze + v1::Gather + v0::Squeeze pattern...
Definition: convert_gather_0d.hpp:27
ngraph namespace
Definition: add_fake_quantize_fusion.hpp:14