softplus_to_mish_fusion.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/ngraph.hpp>
13 #include <ngraph/pass/graph_rewrite.hpp>
14 #include "ngraph/pattern/matcher.hpp"
15 
16 namespace ngraph {
17 namespace pass {
18 
19 class TRANSFORMATIONS_API SoftPlusToMishFusion;
20 
21 } // namespace pass
22 } // namespace ngraph
23 
24 /**
25  * @ingroup ie_transformation_common_api
26  * @brief SoftPlusToMishFusion transformation replaces group of
27  * operations: x * tanh(softplus(x)) to Mish op.
28  */
29 class ngraph::pass::SoftPlusToMishFusion: public ngraph::pass::MatcherPass {
30 public:
31  NGRAPH_RTTI_DECLARATION;
33 };
SoftPlusToMishFusion transformation replaces group of operations: x * tanh(softplus(x)) to Mish op.
Definition: softplus_to_mish_fusion.hpp:29
ngraph namespace
Definition: add_fake_quantize_fusion.hpp:14