blob: 0cabea178eb42b21409847ce5e6f0866f0ee08f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
### `tf.to_double(x, name='ToDouble')` {#to_double}
Casts a tensor to type `float64`.
##### Args:
* <b>`x`</b>: A `Tensor` or `SparseTensor`.
* <b>`name`</b>: A name for the operation (optional).
##### Returns:
A `Tensor` or `SparseTensor` with same shape as `x` with type `float64`.
##### Raises:
* <b>`TypeError`</b>: If `x` cannot be cast to the `float64`.
|