import tensorflow as tf
x1 = tf.constant([1.,2.,3.],dtype=tf.float64)
print("x1:",x1)
x2 = tf.cast(x1,tf.int32)
print("x2:",x2)
print("minimum of x2:",tf.reduce_min(x2))
print("maxmum of x2:",tf.reduce_max(x2))
"""
x1: tf.Tensor([1. 2. 3.], shape=(3,), dtype=float64)
x2: tf.Tensor([1 2 3], shape=(3,), dtype=int32)
minimum of x2: tf.Tensor(1, shape=(), dtype=int32)
maxmum of x2: tf.Tensor(3, shape=(), dtype=int32)
"""