aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/api_def/base_api/api_def_CudnnRNNParamsSize.pbtxt
blob: 31fb85d4fb3f59ae82737128cc88d2cbdbc996ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
op {
  graph_op_name: "CudnnRNNParamsSize"
  summary: "Computes size of weights that can be used by a Cudnn RNN model."
  description: <<END
Return the params size that can be used by the Cudnn RNN model. Subsequent
weight allocation and initialization should use this size.

num_layers: Specifies the number of layers in the RNN model.
num_units: Specifies the size of the hidden state.
input_size: Specifies the size of the input state.
rnn_mode: Indicates the type of the RNN model.
input_mode: Indicate whether there is a linear projection between the input and
  The actual computation before the first layer. 'skip_input' is only allowed
  when input_size == num_units; 'auto_select' implies 'skip_input' when
  input_size == num_units; otherwise, it implies 'linear_input'.
direction: Indicates whether a bidirectional model will be used.
  dir = (direction == bidirectional) ? 2 : 1
dropout: dropout probability. When set to 0., dropout is disabled.
seed: the 1st part of a seed to initialize dropout.
seed2: the 2nd part of a seed to initialize dropout.
params_size: The size of the params buffer that should be allocated and
  initialized for this RNN model. Note that this params buffer may not be
  compatible across GPUs. Please use CudnnRNNParamsWeights and
  CudnnRNNParamsBiases to save and restore them in a way that is compatible
  across different runs.
END
}