23 #include "ngraph/op/op.hpp"
24 #include "ngraph/op/util/rnn_cell_base.hpp"
35 NGRAPH_RTTI_DECLARATION;
39 const Output<Node>& H_t,
40 const Output<Node>& sequence_lengths,
41 const Output<Node>& W,
42 const Output<Node>& R,
43 const Output<Node>& B,
46 const std::vector<std::string>& activations =
47 std::vector<std::string>{
"sigmoid",
"tanh"},
48 const std::vector<float>& activations_alpha = {},
49 const std::vector<float>& activations_beta = {},
51 bool linear_before_reset =
false);
54 clone_with_new_inputs(
const OutputVector& new_args)
const override;
59 bool get_linear_before_reset()
const {
return m_linear_before_reset; }
63 bool m_linear_before_reset;
Base class for all recurrent network cells.
Definition: rnn_cell_base.hpp:66
RecurrentSequenceDirection
This class defines possible recurrent sequence directions.
Definition: attr_types.hpp:430
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:28
Visits the attributes of a node, primarily for serialization-like tasks.
Definition: attribute_visitor.hpp:70
void validate_and_infer_types() override
Verifies that attributes and inputs are consistent and computes output shapes and element types....
Definition: gru_sequence.hpp:33