get_static_shape

tfsnippet.utils.get_static_shape(tensor)

Get the the static shape of specified tensor as a tuple.

Parameters:tensor – The tensor object.
Returns:
The static shape tuple, or None
if the dimensions of tensor is not deterministic.
Return type:tuple[int or None] or None