tf.dtypes.cast
生活随笔
收集整理的这篇文章主要介绍了
tf.dtypes.cast
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
import tensorflow as tf x = tf.constant([1.8, 2.2], dtype=tf.float32)
c=tf.dtypes.cast(x, tf.int32)
print(tf.keras.backend.eval(c))
总结
以上是生活随笔为你收集整理的tf.dtypes.cast的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: tf.boolean_mask
- 下一篇: tf.clip_norm