tf.broadcast_to
生活随笔
收集整理的這篇文章主要介紹了
tf.broadcast_to
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
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)
《新程序員》:云原生和全面數(shù)字化實(shí)踐50位技術(shù)專家共同創(chuàng)作,文字、視頻、音頻交互閱讀
總結(jié)
以上是生活随笔為你收集整理的tf.broadcast_to的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: rdesktop 登录腾讯云
- 下一篇: 美国历史报纸