MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / to_double

Function to_double

tensorflow/python/ops/math_ops.py:764–778  ·  view source on GitHub ↗

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

(x, name="ToDouble")

Source from the content-addressed store, hash-verified

762@deprecation.deprecated(date=None, instructions="Use `tf.cast` instead.")
763@tf_export(v1=["to_double"])
764def to_double(x, name="ToDouble"):
765 """Casts a tensor to type `float64`.
766
767 Args:
768 x: A `Tensor` or `SparseTensor` or `IndexedSlices`.
769 name: A name for the operation (optional).
770
771 Returns:
772 A `Tensor` or `SparseTensor` or `IndexedSlices` with same shape as `x` with
773 type `float64`.
774
775 Raises:
776 TypeError: If `x` cannot be cast to the `float64`.
777 """
778 return cast(x, dtypes.float64, name=name)
779
780
781@deprecation.deprecated(date=None, instructions="Use `tf.cast` instead.")

Callers

nothing calls this directly

Calls 1

castFunction · 0.70

Tested by

no test coverage detected