MCPcopy Create free account
hub / github.com/benoitsteiner/tensorflow-opencl / to_int32

Function to_int32

tensorflow/python/ops/math_ops.py:819–832  ·  view source on GitHub ↗

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`.

(x, name="ToInt32")

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

reduced_shapeFunction · 0.85

Calls 1

castFunction · 0.70

Tested by

no test coverage detected