parameters: (x, name="ToInt32")
return_statement: return cast(x, dtypes.int32, name=name)
docstring: Casts a tensor to type `int32`.
  
    Args:
      x: A `Tensor` or `SparseTensor`.
      name: A name for the operation (optional).
  
    Returns:
      A `Tensor` or `SparseTensor` with same shape as `x` with type `int32`.
  
    Raises:
      TypeError: If `x` cannot be cast to the `int32`.
docstring_summary: Casts a tensor to type `int32`.
docstring_tokens: Casts a tensor to type int32 .
function: def to_int32(x, name="ToInt32"):
    """Casts a tensor to type `int32`.
  
    Args:
      x: A `Tensor` or `SparseTensor`.
      name: A name for the operation (optional).
  
    Returns:
      A `Tensor` or `SparseTensor` with same shape as `x` with type `int32`.
  
    Raises:
      TypeError: If `x` cannot be cast to the `int32`.
    """
    return cast(x, dtypes.int32, name=name)
function_tokens: def to_int32 ( x , name = "ToInt32" ) : return cast ( x , dtypes . int32 , name = name )