diff options
author | 2017-02-17 17:05:49 -0800 | |
---|---|---|
committer | 2017-02-17 17:23:48 -0800 | |
commit | 93a975e114ee1c35f01ed3bdd47170e6f7129014 (patch) | |
tree | e34255aff698fe6a4a586e7940337fd278947f58 /tensorflow/python/ops/variables.py | |
parent | eb9624017a0040e805fda622a5f9ec6681e24246 (diff) |
Merge changes from github.
Change: 147897309
Diffstat (limited to 'tensorflow/python/ops/variables.py')
-rw-r--r-- | tensorflow/python/ops/variables.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tensorflow/python/ops/variables.py b/tensorflow/python/ops/variables.py index dc73ad78a7..5a1a43b5d5 100644 --- a/tensorflow/python/ops/variables.py +++ b/tensorflow/python/ops/variables.py @@ -196,8 +196,9 @@ class Variable(object): dtype=dtype, expected_shape=expected_shape) - def __str__(self): - return str(self._snapshot) + def __repr__(self): + return "<tf.Variable '%s' shape=%s dtype=%s>" % ( + self.name, self.get_shape(), self.dtype.name) def _init_from_args(self, initial_value=None, |