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")
| 762 | @deprecation.deprecated(date=None, instructions="Use `tf.cast` instead.") |
| 763 | @tf_export(v1=["to_double"]) |
| 764 | def 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.") |