x = tf.constant([1.8, 2.2], dtype=tf.float32) tf.cast(x, tf.int32) <tf.Tensor: shape=(2,), dtype=int32, numpy=array([1, 2], dtype=int32)>.
確定! 回上一頁