LostTech.TensorFlow : API Documentation

Type GRU

Namespace tensorflow.keras.layers

Parent RNN

Interfaces IGRU

Gated Recurrent Unit - Cho et al. 2014.

There are two variants. The default one is based on 1406.1078v3 and has reset gate applied to hidden state before matrix multiplication. The other one is based on original 1406.1078v1 and has the order reversed.

The second variant is compatible with CuDNNGRU (GPU-only) and allows inference on CPU. Thus it has separate biases for `kernel` and `recurrent_kernel`. Use `'reset_after'=True` and `recurrent_activation='sigmoid'`.

Methods

Properties

Public static methods

GRU 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, 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, ImplicitContainer<T> reset_after, 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.

object activity_regularizer_dyn get; set;

object bias_constraint get;

object bias_constraint_dyn get;

object bias_initializer get;

object bias_initializer_dyn get;

object bias_regularizer get;

object bias_regularizer_dyn get;

bool built get; set;

object cell get; set;

IList<InputSpec> constants_spec get; set;

double dropout get;

object dropout_dyn get;

object dtype get;

object dtype_dyn get;

bool dynamic get;

object dynamic_dyn get;

bool go_backwards get; set;

int implementation get;

object implementation_dyn get;

IList<Node> inbound_nodes get;

object inbound_nodes_dyn get;

IList<object> input get;

object input_dyn get;

object input_mask get;

object input_mask_dyn get;

IList<object> input_shape get;

object input_shape_dyn get;

object input_spec get; set;

object input_spec_dyn get; set;

object kernel_constraint get;

object kernel_constraint_dyn get;

object kernel_initializer get;

object kernel_initializer_dyn get;

object kernel_regularizer get;

object kernel_regularizer_dyn get;

IList<object> losses get;

object losses_dyn get;

IList<object> metrics get;

object metrics_dyn get;

object name get;

object name_dyn get;

object name_scope get;

object name_scope_dyn get;

IList<object> non_trainable_variables get;

object non_trainable_variables_dyn get;

IList<object> non_trainable_weights get;

object non_trainable_weights_dyn get;

IList<object> outbound_nodes get;

object outbound_nodes_dyn get;

IList<object> output get;

object output_dyn get;

object output_mask get;

object output_mask_dyn get;

object output_shape get;

object output_shape_dyn get;

object PythonObject get;

object recurrent_activation get;

object recurrent_activation_dyn get;

object recurrent_constraint get;

object recurrent_constraint_dyn get;

double recurrent_dropout get;

object recurrent_dropout_dyn get;

object recurrent_initializer get;

object recurrent_initializer_dyn get;

object recurrent_regularizer get;

object recurrent_regularizer_dyn get;

bool reset_after get;

object reset_after_dyn get;

bool return_sequences get; set;

bool return_state get; set;

object state_spec get; set;

bool stateful get; set;

object states get; set;

object states_dyn get; set;

ValueTuple<object> submodules get;

object submodules_dyn get;

bool supports_masking get; set;

bool time_major get; set;

bool trainable get; set;

object trainable_dyn get; set;

object trainable_variables get;

object trainable_variables_dyn get;

IList<object> trainable_weights get;

object trainable_weights_dyn get;

int units get;

object units_dyn get;

bool unroll get; set;

IList<object> updates get;

object updates_dyn get;

bool use_bias get;

object use_bias_dyn get;

object variables get;

object variables_dyn get;

IList<object> weights get;

object weights_dyn get;

object zero_output_for_mask get; set;