Removed a setter for tf.TensorShape.dims

To the best of my knowledge it is not used anywhere internally and can
be safely removed. External users are encouraged to replace

  shape.dims = ...

with

  shape = tf.TensorShape(...)

PiperOrigin-RevId: 240592991
This commit is contained in:
Sergei Lebedev 2019-03-27 10:37:54 -07:00 committed by TensorFlower Gardener
parent e29d0968f4
commit c510b79d5c

View File

@ -779,10 +779,6 @@ class TensorShape(object):
"""Returns a list of Dimensions, or None if the shape is unspecified."""
return self._dims
@dims.setter
def dims(self, dims):
self._dims = dims
@property
def ndims(self):
"""Deprecated accessor for `rank`."""