diff options
author | Andrew Harp <andrewharp@google.com> | 2017-03-01 17:59:22 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-03-01 18:08:24 -0800 |
commit | 3e975ea978bac4d861bb09328b06f3c316212611 (patch) | |
tree | 79bac044c9723df8443495eb962c2dd98a2ed421 /tensorflow/python/ops/variables.py | |
parent | 8043a27ed77f59bb68409070f2bfa01df0e04b89 (diff) |
Merge changes from github.
Change: 148954491
Diffstat (limited to 'tensorflow/python/ops/variables.py')
-rw-r--r-- | tensorflow/python/ops/variables.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tensorflow/python/ops/variables.py b/tensorflow/python/ops/variables.py index 5a1a43b5d5..ee1e361093 100644 --- a/tensorflow/python/ops/variables.py +++ b/tensorflow/python/ops/variables.py @@ -723,7 +723,8 @@ class Variable(object): """The `Graph` of this variable.""" return self._variable.graph - def get_shape(self): + @property + def shape(self): """The `TensorShape` of this variable. Returns: @@ -731,6 +732,10 @@ class Variable(object): """ return self._variable.get_shape() + def get_shape(self): + """Alias of Variable.shape.""" + return self.shape + def to_proto(self, export_scope=None): """Converts a `Variable` to a `VariableDef` protocol buffer. |