iT邦幫忙

2025 iThome 鐵人賽

DAY 1
0

tf.Variable()

可將普通張量轉換為待優化張量。
https://ithelp.ithome.com.tw/upload/images/20250901/20168366mJb6Dndttm.png

tf.convert_to_tensor

可以將python資料轉換成tensor物件。
https://ithelp.ithome.com.tw/upload/images/20250901/20168366xYCFh55CL4.png

tf.random_normal()

tf.random_normal(shape, mean=0.0, stddev=1.0, dtype=tf.float32, seed=None, name=None)

參數介紹

  1. shape:一維的張亮,也是輸出的張量。
  2. mean:正態分布的平均值。
  3. stddev:正態分布的表準差。
  4. dtype:輸出的型別。
  5. seed:一個整數,當設定後,每次生成的隨機數都一樣。
  6. name:操作的名字。

上一篇
張量
下一篇
張量
系列文
深度學習Tensorflow 2.X8
圖片
  熱門推薦
圖片
{{ item.channelVendor }} | {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言