(1)tf.argmin(input, axis=None, output_type=tf.int64, name=None)
返回输入张量input指定维度axis上的最小值的索引。
(2)tf.argmax(input, axis=None, output_type=tf.int64, name=None)
返回输入张量input指定维度axis上的最大值的索引。
(3)tf.where(condition, x=None, y=None, name=None)
根据条件condition,从张量x和张量y返回指定的元素。
(4)tf.unique(x, out_dix=tf.int32, name=None)
在一维张量x中找到唯一的不重复的元素。
tensorflow-----序列比较和索引
最新推荐文章于 2022-04-16 13:47:18 发布