tf.arg_max
生活随笔
收集整理的這篇文章主要介紹了
tf.arg_max
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
tf.arg_max ,返回最大值的索引
import tensorflow as tf a = [1, 10, 26.9, 2.8, 166.32, 62.3] b = tf.math.argmax(input = a) c = tf.keras.backend.eval(b) # c = 4 # here a[4] = 166.32 which is the largest element of a across axis 0總結
以上是生活随笔為你收集整理的tf.arg_max的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: tf.argsort
- 下一篇: tf.arg_min