log_softmax_decomposition.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 LogSoftmaxDecomposition;
14 
15 } // namespace pass
16 } // namespace ngraph
17 
18 /**
19  * @ingroup ie_transformation_common_api
20  * @brief LogSoftmaxDecomposition transformation into sub-graph x - log(reduce_sum(exp(x), axis)).
21  */
22 class ngraph::pass::LogSoftmaxDecomposition : public ngraph::pass::MatcherPass {
23 public:
24  NGRAPH_RTTI_DECLARATION;
26 };
LogSoftmaxDecomposition transformation into sub-graph x - log(reduce_sum(exp(x), axis)).
Definition: log_softmax_decomposition.hpp:22
ngraph namespace
Definition: add_fake_quantize_fusion.hpp:14