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

Function to_int64

tensorflow/python/ops/math_ops.py:835–848  ·  view source on GitHub ↗

Casts a tensor to type `int64`. 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 `int64`. Raises: TypeError: If `x` cannot be cast to the `int64`.

(x, name="ToInt64")

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

count_nonzeroFunction · 0.85

Calls 1

castFunction · 0.70

Tested by

no test coverage detected