gelu7_downgrade.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 #include <ngraph/pass/graph_rewrite.hpp>
9 
10 namespace ngraph {
11 namespace pass {
12 
13  class TRANSFORMATIONS_API Gelu7Downgrade;
14 
15 } // namespace pass
16 } // namespace ngraph
17 
18 /**
19  * @ingroup ie_transformation_common_api
20  * @brief Gelu7Downgrade converts v7::Gelu operation to v2::Gelu unconditionally. This is done because only limited
21  * set of plugins support v7::Gelu which has an attribute specifying approximation mode. For other plugins the
22  * behaviour is to use v2 version of the operation which does not support the approximation mode.
23  */
24 class ngraph::pass::Gelu7Downgrade : public ngraph::pass::MatcherPass {
25 public:
26  NGRAPH_RTTI_DECLARATION;
28 };
Gelu7Downgrade converts v7::Gelu operation to v2::Gelu unconditionally. This is done because only lim...
Definition: gelu7_downgrade.hpp:24
ngraph namespace
Definition: add_fake_quantize_fusion.hpp:14