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

Function cast

tensorflow/python/ops/math_ops.py:714–751  ·  view source on GitHub ↗

Casts a tensor to a new type. The operation casts `x` (in case of `Tensor`) or `x.values` (in case of `SparseTensor`) to `dtype`. For example: ```python x = tf.constant([1.8, 2.2], dtype=tf.float32) tf.cast(x, tf.int32) # [1, 2], dtype=tf.int32 ``` Args: x: A `Tensor` or `Sp

(x, dtype, name=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 13

saturate_castFunction · 0.70
to_floatFunction · 0.70
to_doubleFunction · 0.70
to_int32Function · 0.70
to_int64Function · 0.70
to_bfloat16Function · 0.70
_sparse_dense_truedivFunction · 0.70
_truediv_python3Function · 0.70
rangeFunction · 0.70
count_nonzeroFunction · 0.70
_as_indexed_slices_listFunction · 0.70
bincountFunction · 0.70

Calls 3

name_scopeMethod · 0.80
SparseTensorMethod · 0.80
castMethod · 0.80

Tested by

no test coverage detected