iT邦幫忙

2025 iThome 鐵人賽

DAY 1
0

資料限幅

在輸出時限制其資料輸出範圍。

tf.maximum(a,b)
tf.minimum(a,b)

功能介紹:

  1. tf.maximum在a跟b之中選取最大的值
  2. tf.minimum在a跟b之中選取最小的值
    https://ithelp.ithome.com.tw/upload/images/20250908/20168366sQdDW2gT0n.png
tf.clip_by_value(t, min, max)

參數介紹:

  1. t:輸入的張量。
  2. min:可以達到的最小值。
  3. max:可以達到的最大值。
    https://ithelp.ithome.com.tw/upload/images/20250908/20168366jUwcwohujK.png

資料採樣

tf.gather(params, indices, axis=0)

參數介紹:

  1. params:輸入張量。
  2. indices:提取的索引值。
  3. axis:默認為第一維度。
    https://ithelp.ithome.com.tw/upload/images/20250908/20168366xwRy9XC9qW.png

上一篇
張量的填充與複製
系列文
深度學習Tensorflow 2.X12
圖片
  熱門推薦
圖片
{{ item.channelVendor }} | {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言