codecamp

TensorFlow 返回张量的最小值索引

tf.argmin


argmin (
input ,
axis = None ,
name = None ,
dimension = None
)

定义在:tensorflow/python/ops/math_ops.py.

参考指南:数学>序列比较和索引

返回在张量的轴上的具有最小值的索引.

请注意,在关联的情况下,返回值的身份不能保证.

ARGS:

  • input:张量.必须是下列类型之一:float32,float64,int64,int32,uint8,uint16,int16,int8,complex64,complex128,qint8,quint8,qint32,half.
  • axis:张量.必须是以下类型之一:int32,int64.当类型为 int32 时,应满足:0 <= axis <rank(input).用来描述输入张量的哪个轴减少.对于矢量,使用 axis = 0.
  • name:操作的名称(可选).

返回:

返回的张量类型为 int 64.


TensorFlow 返回张量的最大值索引
TensorFlow 返回张量维度上最大值的索引
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

TensorFlow 函数介绍

TensorFlow 函数模块:tf

TensorFlow的image模块

TensorFlow使用之tf.io

TensorFlow使用之tf.keras

TensorFlow函数教程:tf.keras.applications

TensorFlow函数教程:tf.keras.backend

TensorFlow使用之tf.metrics

TensorFlow使用之tf.nn

TensorFlow使用之tf.python_io

TensorFlow 功能函数

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }