how to change data type tesnorflow of a variable code example
Example: tf.cast
Casts a tensor to a new type.
tf.cast(
x, dtype, name=None
)
The operation casts x (in case of Tensor) or x.values
(in case of SparseTensor or IndexedSlices) to dtype.