tf.broadcast_to
生活随笔
收集整理的这篇文章主要介绍了
tf.broadcast_to
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
import tensorflow as tf
x = tf.constant([1, 2, 3])
y = tf.broadcast_to(x, [5, 3])
print(y)
tf.Tensor(
[[1 2 3][1 2 3][1 2 3][1 2 3][1 2 3]], shape=(5, 3), dtype=int32)
《新程序员》:云原生和全面数字化实践50位技术专家共同创作,文字、视频、音频交互阅读
总结
以上是生活随笔为你收集整理的tf.broadcast_to的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: rdesktop 登录腾讯云
- 下一篇: 美国历史报纸