一、首先来看官方文档的解释:(https://tensorflow.google.cn/api_docs/python/tf/arg_max 官方文档地址)
(注意:在不同的版本中,有两种形式 arg_max 和 argmax,官方说明在以后会舍弃前者)
函数原型:
tf.arg_max(
input,
dimension,
output_type=tf.int64,
name=None
)
Returns the index with the largest value across dimensions of a tensor. 返回结果是该张量在某个维度上的最大值的索引号。
Args: (各个参数的解释)
input
: ATensor
. Must be one of the following types:float32
,float64
,int32
,uint8
,int16
,int8
,complex64
,int64
,qint8
,quint8
,qint32
,bfloat16
,uint16
,complex128
,half