File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
tensorflow_probability/python/internal/backend/numpy/gen Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -213,7 +213,17 @@ def dimension_at_index(shape, index):
213213
214214@tf_export (v1 = ["Dimension" ])
215215class Dimension (object ):
216- """Represents the value of one dimension in a TensorShape."""
216+ """Represents the value of one dimension in a TensorShape.
217+
218+ @compatibility(TF2)
219+ In TF2, members of a `TensorShape` object are integers. The `Dimension` class
220+ is not part of TF2's data model.
221+
222+ Please refer to the [TensorShape section of the migration guide]
223+ (https://www.tensorflow.org/guide/migrate/index#tensorshape) on common code
224+ patterns adapting Dimension objects to a TF2 syntax.
225+ @end_compatibility
226+ """
217227
218228 __slots__ = ["_value" ]
219229
You can’t perform that action at this time.
0 commit comments