@deprecation.deprecated(date=None, instructions='Use tf.cast instead.')
@tf_export(v1=['to_int32'])
def to_int32(x, name='ToInt32'):
    'Casts a tensor to type `int32`.\n\n  Args:\n    x: A `Tensor` or `SparseTensor` or `IndexedSlices`.\n    name: A name for the operation (optional).\n\n  Returns:\n    A `Tensor` or `SparseTensor` or `IndexedSlices` with same shape as `x` with\n    type `int32`.\n\n  Raises:\n    TypeError: If `x` cannot be cast to the `int32`.\n  '
    return cast(x, dtypes.int32, name=name)
Casts a tensor to type `int32`.

Args:
  x: A `Tensor` or `SparseTensor` or `IndexedSlices`.
  name: A name for the operation (optional).

Returns:
  A `Tensor` or `SparseTensor` or `IndexedSlices` with same shape as `x` with
  type `int32`.

Raises:
  TypeError: If `x` cannot be cast to the `int32`.
@deprecation.deprecated(date=None, instructions='Use tf.cast instead.')
@tf_export(v1=['to_int32'])
def to_int32(x, name='ToInt32'):
    'Casts a tensor to type `int32`.\n\n  Args:\n    x: A `Tensor` or `SparseTensor` or `IndexedSlices`.\n    name: A name for the operation (optional).\n\n  Returns:\n    A `Tensor` or `SparseTensor` or `IndexedSlices` with same shape as `x` with\n    type `int32`.\n\n  Raises:\n    TypeError: If `x` cannot be cast to the `int32`.\n  '
    return cast(x, dtypes.int32, name=name)