MCPcopy Create free account
hub / github.com/tensorflow/tensorboard / unknown_shape

Function unknown_shape

tensorboard/compat/tensorflow_stub/tensor_shape.py:990–1002  ·  view source on GitHub ↗

Returns an unknown TensorShape, optionally with a known rank. Args: ndims: (Optional) If specified, the number of dimensions in the shape. Returns: An unknown TensorShape.

(ndims=None)

Source from the content-addressed store, hash-verified

988
989
990def unknown_shape(ndims=None):
991 """Returns an unknown TensorShape, optionally with a known rank.
992
993 Args:
994 ndims: (Optional) If specified, the number of dimensions in the shape.
995
996 Returns:
997 An unknown TensorShape.
998 """
999 if ndims is None:
1000 return TensorShape(None)
1001 else:
1002 return TensorShape([Dimension(None)] * ndims)
1003
1004
1005_SCALAR_SHAPE = TensorShape([])

Callers 4

__getitem__Method · 0.85
concatenateMethod · 0.85
with_rankMethod · 0.85

Calls 2

TensorShapeClass · 0.85
DimensionClass · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…