parameters: (tensor)
docstring: Static assert that `tensor` has rank `2` or higher.
docstring_summary: Static assert that `tensor` has rank `2` or higher.
docstring_tokens: Static assert that tensor has rank 2 or higher .
function: def assert_is_batch_matrix(tensor):
    """Static assert that `tensor` has rank `2` or higher."""
    sh = tensor.get_shape()
    if sh.ndims is not None and sh.ndims < 2:
      raise ValueError(
          "Expected [batch] matrix to have at least two dimensions.  Found: "
          "%s" % tensor)
function_tokens: def assert_is_batch_matrix ( tensor ) : sh = tensor . get_shape ( ) if sh . ndims is not None and sh . ndims < 2 : raise ValueError ( "Expected [batch] matrix to have at least two dimensions.  Found: " "%s" % tensor )