Type LSTM
Namespace tensorflow.keras.layers
Parent RNN
Interfaces ILSTM
Long Short-Term Memory layer - Hochreiter 1997. Note that this cell is not optimized for performance on GPU. Please use
`tf.compat.v1.keras.layers.CuDNNLSTM` for better performance on GPU.
Methods
Properties
- activation
- activation_dyn
- activity_regularizer
- activity_regularizer_dyn
- bias_constraint
- bias_constraint_dyn
- bias_initializer
- bias_initializer_dyn
- bias_regularizer
- bias_regularizer_dyn
- built
- cell
- constants_spec
- dropout
- dropout_dyn
- dtype
- dtype_dyn
- dynamic
- dynamic_dyn
- go_backwards
- implementation
- implementation_dyn
- inbound_nodes
- inbound_nodes_dyn
- input
- input_dyn
- input_mask
- input_mask_dyn
- input_shape
- input_shape_dyn
- input_spec
- input_spec_dyn
- kernel_constraint
- kernel_constraint_dyn
- kernel_initializer
- kernel_initializer_dyn
- kernel_regularizer
- kernel_regularizer_dyn
- losses
- losses_dyn
- metrics
- metrics_dyn
- name
- name_dyn
- name_scope
- name_scope_dyn
- non_trainable_variables
- non_trainable_variables_dyn
- non_trainable_weights
- non_trainable_weights_dyn
- outbound_nodes
- outbound_nodes_dyn
- output
- output_dyn
- output_mask
- output_mask_dyn
- output_shape
- output_shape_dyn
- PythonObject
- recurrent_activation
- recurrent_activation_dyn
- recurrent_constraint
- recurrent_constraint_dyn
- recurrent_dropout
- recurrent_dropout_dyn
- recurrent_initializer
- recurrent_initializer_dyn
- recurrent_regularizer
- recurrent_regularizer_dyn
- return_sequences
- return_state
- state_spec
- stateful
- states
- states_dyn
- submodules
- submodules_dyn
- supports_masking
- time_major
- trainable
- trainable_dyn
- trainable_variables
- trainable_variables_dyn
- trainable_weights
- trainable_weights_dyn
- unit_forget_bias
- unit_forget_bias_dyn
- units
- units_dyn
- unroll
- updates
- updates_dyn
- use_bias
- use_bias_dyn
- variables
- variables_dyn
- weights
- weights_dyn
- zero_output_for_mask
Public static methods
LSTM NewDyn(object units, ImplicitContainer<T> activation, ImplicitContainer<T> recurrent_activation, ImplicitContainer<T> use_bias, ImplicitContainer<T> kernel_initializer, ImplicitContainer<T> recurrent_initializer, ImplicitContainer<T> bias_initializer, ImplicitContainer<T> unit_forget_bias, object kernel_regularizer, object recurrent_regularizer, object bias_regularizer, object activity_regularizer, object kernel_constraint, object recurrent_constraint, object bias_constraint, ImplicitContainer<T> dropout, ImplicitContainer<T> recurrent_dropout, ImplicitContainer<T> implementation, ImplicitContainer<T> return_sequences, ImplicitContainer<T> return_state, ImplicitContainer<T> go_backwards, ImplicitContainer<T> stateful, ImplicitContainer<T> unroll, IDictionary<string, object> kwargs)
Public properties
object activation get;
object activation_dyn get;
PythonFunctionContainer activity_regularizer get; set;
Optional regularizer function for the output of this layer.