tensorflow教程:tf.contrib.rnn.DropoutWrapper
2024-09-02 22:02:18
tf.contrib.rnn.DropoutWrapper
Defined in tensorflow/python/ops/rnn_cell_impl.py.
def __init__(self, cell, input_keep_prob=1.0, output_keep_prob=1.0,
state_keep_prob=1.0, variational_recurrent=False,
input_size=None, dtype=None, seed=None): Args:
cell: an RNNCell, a projection to output_size is added to it.
input_keep_prob: unit Tensor or float between 0 and 1, input keep
probability; if it is constant and 1, no input dropout will be added.
output_keep_prob: unit Tensor or float between 0 and 1, output keep
probability; if it is constant and 1, no output dropout will be added.
state_keep_prob: unit Tensor or float between 0 and 1, output keep
probability; if it is constant and 1, no output dropout will be added.
State dropout is performed on the *output* states of the cell.
variational_recurrent: Python bool. If `True`, then the same
dropout pattern is applied across all time steps per run call.
If this parameter is set, `input_size` **must** be provided.
input_size: (optional) (possibly nested tuple of) `TensorShape` objects
containing the depth(s) of the input tensors expected to be passed in to
the `DropoutWrapper`. Required and used **iff**
`variational_recurrent = True` and `input_keep_prob < 1`.
dtype: (optional) The `dtype` of the input, state, and output tensors.
Required and used **iff** `variational_recurrent = True`.
seed: (optional) integer, the randomness seed.
最新文章
- 《图解HTTP》读书笔记
- 【设计模式】GoF设计模式学习总结
- Genymotion无法下载OVA文件
- Java中静态类型检查是如何进行的
- 2. Basic environment configuration
- 缓存应用--Memcached分布式缓存简介
- ls -l命令详解
- HDOJ/HDU 2140 Michael Scofield&#39;s letter(字符转换~)
- Canvas实现文字粒子化,并且绕轴旋转(初号机)
- &#39;Invalid update: invalid number of rows in section xx. The number of rows contained in an existing section after the update (xxx)...
- JavaSE学习总结第13天_API常用对象3
- HDOJ 5188 zhx and contest 贪婪+01背包
- Linux常见命令(系统命令)
- iOS中蓝牙的使用
- Scala类型限定
- POJ3070 Fibonacci(矩阵快速幂加速递推)【模板题】
- .resources文件转为可视化.resx文件
- BZOJ 2440 [中山市选2011]完全平方数 | 莫比乌斯函数
- 数学建模 TSP(旅行商问题) Lingo求解
- LeetCode: Sort List 解题报告