From c510b79d5cf8c59874c092aa05b8d25b4d6baef1 Mon Sep 17 00:00:00 2001 From: Sergei Lebedev Date: Wed, 27 Mar 2019 10:37:54 -0700 Subject: [PATCH] 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 --- tensorflow/python/framework/tensor_shape.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tensorflow/python/framework/tensor_shape.py b/tensorflow/python/framework/tensor_shape.py index 0dc3dde4f6e..076430dcac8 100644 --- a/tensorflow/python/framework/tensor_shape.py +++ b/tensorflow/python/framework/tensor_shape.py @@ -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`."""