当前位置:网站首页>pytorch常用函数
pytorch常用函数
2022-08-02 05:11:00 【樱花的浪漫】
1.torch.max
(input, dim, keepdim=False, *, out=None)
返回一个命名元组,其中是给定维度中张量 每一行的最大值。并且是找到的每个最大值的索引位置 (argmax)。(values, indices)
values
input
dim
indices
如果keepdim为True,则输出张量与输入张量的大小相同,但维度dim中的输出张量大小为1。否则,dim会被压缩(请参见torch.squege()),导致输出张量的维度比输入张量少1。
边栏推荐
- LeetCode brush topic series - 787 K station transfer within the cheapest flight
- Features and installation of non-relational database MongoDB
- MySQL数据表的基本操作和基于 MySQL数据表的基本操作的综合实例项目
- 51单片机外设篇:DS18B20
- navicat新建数据库
- 关于 VS Code 优化启动性能的实践
- Mysql common commands
- 如何优化OpenSumi终端性能?
- Timing task library in the language use Cron, rounding
- 利用浏览器本地存储 实现记住用户名的功能
猜你喜欢
100 latest software testing interview questions in 2022, summary of common interview questions and answers
MySql将一张表的数据copy到另一张表中
[PSQL] window function, GROUPING operator
Navicat new database
浏览器的onload事件
51 MCU peripherals: ADC
Redis-----非关系数据库
goroutine (coroutine) in go language
【C语言】LeetCode26.删除有序数组中的重复项&&LeetCode88.合并两个有序数组
Introduction and use of apifox (1).
随机推荐
51 microcontroller peripherals article: dot-matrix LCD
Shuttle + Alluxio 加速内存Shuffle起飞
The company does not pay attention to software testing, and the new Ali P8 has written a test case writing specification for us
如何优化OpenSumi终端性能?
Introduction to Grid Layout
165.比较版本号
navicat connects to MySQL and reports an error: 1045 - Access denied for user 'root'@'localhost' (using password YES)
5年在职经验之谈:2年功能测试、3年自动化测试,从入门到不可自拔...
Mysql implements optimistic locking
Install and use Google Chrome
leetcode一步解决链表反转问题
PIL与numpy格式之间的转换
Detailed explanation of interface in Go language
程序员最重要的能力是什么?
Navicat new database
51单片机外设篇:DS18B20
mysql实现按照自定义(指定顺序)排序
关于web应用的目录结构
TikTok平台的两种账户有什么区别?
H5 access payment process - WeChat payment & Alipay payment