diff options
author | Yong Tang <yong.tang.github@outlook.com> | 2018-08-10 04:21:54 +0000 |
---|---|---|
committer | Yong Tang <yong.tang.github@outlook.com> | 2018-08-10 04:21:54 +0000 |
commit | 6674929c07330bbbe06be03bfd4f8a011cecefc7 (patch) | |
tree | 55fbe1a462a0cbe2e017f9a4e586b73286fcf437 /tensorflow/python/layers | |
parent | 8016801c68c042482c3e58aee41fb7a15ecef42d (diff) |
Fix incorrect doc in tf.layers.dense
This fix tries to address the issue raised in 21525 where
the doc in tf.layers.dense is not correct. Specifically
`outputs = activation(inputs.kernel + bias) Where` ->
`outputs = activation(inputs * kernel + bias) where`
This fix fixes 21525.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Diffstat (limited to 'tensorflow/python/layers')
-rw-r--r-- | tensorflow/python/layers/core.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/python/layers/core.py b/tensorflow/python/layers/core.py index 50a56736fc..9879e5020f 100644 --- a/tensorflow/python/layers/core.py +++ b/tensorflow/python/layers/core.py @@ -127,8 +127,8 @@ def dense( """Functional interface for the densely-connected layer. This layer implements the operation: - `outputs = activation(inputs.kernel + bias)` - Where `activation` is the activation function passed as the `activation` + `outputs = activation(inputs * kernel + bias)` + where `activation` is the activation function passed as the `activation` argument (if not `None`), `kernel` is a weights matrix created by the layer, and `bias` is a bias vector created by the layer (only if `use_bias` is `True`). |