parameters: (x)
docstring: Get the static shape of a Tensor, or None if it is unavailable.
docstring_summary: Get the static shape of a Tensor, or None if it is unavailable.
docstring_tokens: Get the static shape of a Tensor or None if it is unavailable .
function: def static_shape(x):
    """Get the static shape of a Tensor, or None if it is unavailable."""
    if x is None:
      return None
    try:
      return tuple(x.get_shape().as_list())
    except ValueError:
      return None
function_tokens: def static_shape ( x ) : if x is None : return None try : return tuple ( x . get_shape ( ) . as_list ( ) ) except ValueError : return None