convert_pad_to_group_conv.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 ConvertPadToGroupConvolution;
18 
19 } // namespace pass
20 } // namespace ngraph
21 
22 /**
23  * @ingroup ie_transformation_common_api
24  * @brief ConvertPadToGroupConvolution transformation replaces Pad operation
25  * with GroupConvolution but has some restrictions on Pad parameters:
26  * 1. PadMode must be Constant and value is equal to 0
27  * 2. Padding must be applied only for spatial dimensions
28  * 3. Input shape rank must be static and greater than 3
29  */
30 
31 class ngraph::pass::ConvertPadToGroupConvolution: public ngraph::pass::MatcherPass {
32 public:
33  NGRAPH_RTTI_DECLARATION;
35 };
ConvertPadToGroupConvolution transformation replaces Pad operation with GroupConvolution but has some...
Definition: convert_pad_to_group_conv.hpp:31
ngraph namespace
Definition: add_fake_quantize_fusion.hpp:14