aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--tensorflow/python/ops/variables.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tensorflow/python/ops/variables.py b/tensorflow/python/ops/variables.py
index 40c90dfba8..9f3b55fc12 100644
--- a/tensorflow/python/ops/variables.py
+++ b/tensorflow/python/ops/variables.py
@@ -518,6 +518,10 @@ class Variable(object):
You should use this instead of the variable itself to initialize another
variable with a value that depends on the value of this variable.
+ Beware of using initialized_value except during initialization:
+ initialized_value causes the Variable's initializer op to be run, so running
+ this op resets the variable to the initial value.
+
```python
# Initialize 'v' with a random tensor.
v = tf.Variable(tf.truncated_normal([10, 40]))