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

Function to_bfloat16

tensorflow/python/ops/math_ops.py:851–864  ·  view source on GitHub ↗

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

(x, name="ToBFloat16")

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

castFunction · 0.70

Tested by

no test coverage detected