strided_slice_squeeze.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 namespace ngraph {
15 namespace pass {
16 
17 class TRANSFORMATIONS_API StridedSliceSqueeze;
18 class TRANSFORMATIONS_API SqueezeStridedSlice;
19 class TRANSFORMATIONS_API SharedSqueeze;
20 
21 } // namespace pass
22 } // namespace ngraph
23 
24 /**
25  * @ingroup ie_transformation_common_api
26  * @brief StridedSliceSqueeze transformation looks for SS -> Squeeze and corrects SS inputs and attributes for SS output to be squeeze-able
27  */
28 
29 class ngraph::pass::StridedSliceSqueeze : public ngraph::pass::MatcherPass {
30 public:
31  NGRAPH_RTTI_DECLARATION;
33 };
34 
35 /**
36  * @ingroup ie_transformation_common_api
37  * @brief StridedSliceSqueeze transformation looks for Squeeze -> SSe and corrects SS inputs and attributes for SS output to be squeeze-able
38  */
39 
40 class ngraph::pass::SqueezeStridedSlice : public ngraph::pass::MatcherPass {
41 public:
42  NGRAPH_RTTI_DECLARATION;
44 };
45 
46 /**
47  * @ingroup ie_transformation_common_api
48  * @brief SharedSqueeze transformation looks for shared Squeezes and leaves only one Squeeze reconnecting all the outputs to it
49  */
50 
51 class ngraph::pass::SharedSqueeze : public ngraph::pass::FunctionPass {
52 public:
53  NGRAPH_RTTI_DECLARATION;
54  bool run_on_function(std::shared_ptr<ngraph::Function> f) override;
55 };
SharedSqueeze transformation looks for shared Squeezes and leaves only one Squeeze reconnecting all t...
Definition: strided_slice_squeeze.hpp:51
StridedSliceSqueeze transformation looks for Squeeze -> SSe and corrects SS inputs and attributes for...
Definition: strided_slice_squeeze.hpp:40
StridedSliceSqueeze transformation looks for SS -> Squeeze and corrects SS inputs and attributes for ...
Definition: strided_slice_squeeze.hpp:29
ngraph namespace
Definition: add_fake_quantize_fusion.hpp:14