aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow
diff options
context:
space:
mode:
authorGravatar Mark Daoust <markdaoust@google.com>2017-05-01 04:18:19 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-05-01 05:30:14 -0700
commit838a607635769c0b851fe7859c0a2f02495b14d0 (patch)
tree19f9f3c14c59de6aec613a3f2d03072b934782c4 /tensorflow
parente370aa6434ce3e17f8fa2a9df690500a8dc03d4e (diff)
Clarify docs on unused GraphKeys:
WEIGHTS, BIASES, ACTIVTIONS Closes #7741 Change: 154708825
Diffstat (limited to 'tensorflow')
-rw-r--r--tensorflow/contrib/layers/README.md7
-rw-r--r--tensorflow/python/framework/ops.py10
2 files changed, 9 insertions, 8 deletions
diff --git a/tensorflow/contrib/layers/README.md b/tensorflow/contrib/layers/README.md
index 7b374172f5..9310b194df 100644
--- a/tensorflow/contrib/layers/README.md
+++ b/tensorflow/contrib/layers/README.md
@@ -18,17 +18,14 @@ these arguments.
…,
weight_init=<DEFAULT>,
bias_init=<DEFAULT>,
- weight_collections=(tf.GraphKeys.WEIGHTS,),
- bias_collections=(tf.GraphKeys.BIASES,),
- output_collections=(tf.GraphKeys.ACTIVATIONS,),
weight_regularizer=None,
bias_regularizer=None,
name=None) : Tensor`
`x` is the input tensor.
-Weights, biases, and activations (i.e., outputs) are, by default, added to the specified collections. Weights and biases are also added to
-`tf.GraphKeys.GLOBAL_VARIABLES` and `tf.GraphKeys.TRAINABLE_VARIABLES`.
+Weights and biases are added to `tf.GraphKeys.GLOBAL_VARIABLES` and
+`tf.GraphKeys.TRAINABLE_VARIABLES`.
## optimizers.py
diff --git a/tensorflow/python/framework/ops.py b/tensorflow/python/framework/ops.py
index 2a094203d7..93a29d0d8e 100644
--- a/tensorflow/python/framework/ops.py
+++ b/tensorflow/python/framework/ops.py
@@ -3981,9 +3981,13 @@ class GraphKeys(object):
for more details.
* `REGULARIZATION_LOSSES`: regularization losses collected during graph
construction.
- * `WEIGHTS`: weights inside neural network layers
- * `BIASES`: biases inside neural network layers
- * `ACTIVATIONS`: activations of neural network layers
+
+ The following standard keys are _defined_, but their collections are **not**
+ automatically populated as many of the others are:
+
+ * `WEIGHTS`
+ * `BIASES`
+ * `ACTIVATIONS`
"""
# Key to collect Variable objects that are global (shared across machines).