import tensorflow as tfinput = [1, 3, 5, 7]output = ([[1, 2],[3, 5]])a = tf.argmax(input, 0) # 0表是按行b = tf.argmax(output, 1) # 1 表示按列with tf.Session() as sess:print("输出input最大值的索引下标:", sess.run(a))print("输出output最大值的索引下标,这是一个二维数组:",sess.run(b))
#rerurn:
3
[1 1]

【tensorflow】tf-argmax()相关推荐

  1. 【Tensorflow】 tf.equal(tf.argmax(y, 1),tf.argmax(y_, 1))用法

    [Tensorflow] tf.equal(tf.argmax(y, 1),tf.argmax(y_, 1))用法 作用:输出正确的预测结果 利用tf.argmax()按行求出真实值y_.预测值y最大 ...

  2. 【Tensorflow】tf.nn.atrous_conv2d如何实现空洞卷积?膨胀卷积

    介绍 关于空洞卷积的理论可以查看以下链接,这里我们不详细讲理论: 1.Long J, Shelhamer E, Darrell T, et al. Fully convolutional networ ...

  3. 【TensorFlow】tf.nn.softmax_cross_entropy_with_logits的用法

    [TensorFlow]tf.nn.softmax_cross_entropy_with_logits的用法 from:https://blog.csdn.net/mao_xiao_feng/arti ...

  4. 【TensorFlow】tf.nn.softmax_cross_entropy_with_logits中的“logits”到底是个什么意思?

    tf.nn.softmax_cross_entropy_with_logits中的"logits"到底是个什么意思?_玉来愈宏的随笔-CSDN博客 https://blog.csd ...

  5. 【TensorFlow】tf.nn.softmax_cross_entropy_with_logits 函数:求交叉熵损失

    [TensorFlow]tf.nn.softmax_cross_entropy_with_logits的用法_xf__mao的博客-CSDN博客 https://blog.csdn.net/mao_x ...

  6. 【Tensorflow】tf.nn.depthwise_conv2d如何实现深度卷积?+深度可分离卷积详解

    目录 常规卷积操作 深度可分离卷积 = 逐通道卷积+逐点卷积 1.逐通道卷积 2.逐点卷积 参数对比 介绍 实验 代码清单 一些轻量级的网络,如mobilenet中,会有深度可分离卷积depthwis ...

  7. 【TensorFlow】tf.nn.conv2d是怎样实现卷积的?

    int height_col= (height + 2 * pad_h - kernel_h) / stride_h + 1; int width_col = (width + 2 * pad_w - ...

  8. 【Tensorflow】TF中的字符串tf.string

    目录 string 的定义 string 类型常用的函数 tf.as_string() tf.substr() tf.string_to_number() tf.string_split() tf.s ...

  9. 【TensorFlow】tf.concat的用法

    tf.concat是连接两个矩阵的操作 tf.concat(concat_dim, values, name='concat') 除去name参数用以指定该操作的name,与方法有关的一共两个参数: ...

  10. 【tensorflow】tf.layers.conv1d函数解析(一维卷积)

    TensorFlow函数:tf.layers.Conv1D_w3cschool https://www.w3cschool.cn/tensorflow_python/tensorflow_python ...

最新文章

  1. linux6直连存储挂载磁盘,CentOS7mount网络磁盘的详细步骤
  2. 汇编环境搭建(vs2010(2012)+masm32)
  3. SAP Fiori Elements List Report table 里的普通按钮,Global 按钮 和 Determining 按钮
  4. The executable was signed with invalid entitlements
  5. 482. 密钥格式化
  6. WordPress主题modown6.2+erphpdown11.7
  7. Python基础(7) - 函数
  8. python获取淘宝服务器时间_分享淘宝时间服务器同步时间接口api和苏宁时间服务器接口api...
  9. c#编写外卖系统_C#网上订餐系统
  10. 魏晋名士:骂人都不带脏字
  11. 【215期推荐】另类思考:HIS能给医院带来什么“坏处”?
  12. 《菜鸟教程》 EUI卡牌游戏制作
  13. coap 返回版本信息_coap组包格式的简单解析
  14. Vim编辑器Windows配置(一)
  15. 数据结构:二叉树及堆排序
  16. XLSX转换为DOCX,Aspose.Cells快速搞定
  17. 虚拟森林火场生成及蔓延模拟
  18. 达内c++培训整体课程体系安排
  19. 网络建站都有哪些步骤?
  20. php截取部分pdf,用PHP从pdf中提取图像

热门文章

  1. python吧_Python | 初识Python程序设计
  2. 趣学python3(9)-range
  3. 复现经典:《统计学习方法》第15章 奇异值分解
  4. 33万字!深度学习笔记在线版发布!
  5. 推荐Datawhale整理的秋招求职攻略
  6. 2020数字中国创新大赛—算法赛开源方案复盘笔记
  7. AI换脸引发全民恐慌,用对方向却能推动行业变革
  8. 分享B2B信息发布小技巧
  9. java获得当前文件路径
  10. CentOS 7 Root用户密码重置 2017-04-02