Documentation
Download Docs
Install OpenVINO™
transformations
include
transformations
op_conversions
rnn_cell_decomposition.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 RNNCellDecomposition;
18
19
}
// namespace pass
20
}
// namespace ngraph
21
22
/**
23
* @ingroup ie_transformation_common_api
24
* @brief RNNCellDecomposition transformation decomposes RNNCell layer with inputs X, H, W, R, B
25
* to Add, MatMul ops according to the formula:
26
* - Denotes dot product.
27
f - is an activation functions.
28
29
* Ht = f(Xt*(Wi^T) + Ht-1*(Ri^T) + Wbi + Rbi)
30
* *
31
*/
32
33
class
ngraph::pass::RNNCellDecomposition
:
public
ngraph::pass::MatcherPass {
34
public
:
35
NGRAPH_RTTI_DECLARATION;
36
RNNCellDecomposition
();
37
};
ngraph::pass::RNNCellDecomposition
RNNCellDecomposition transformation decomposes RNNCell layer with inputs X, H, W, R,...
Definition:
rnn_cell_decomposition.hpp:33
ngraph
ngraph namespace
Definition:
add_fake_quantize_fusion.hpp:14