当前位置:网站首页>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。
边栏推荐
- 165.比较版本号
- C语言入门实战(13):十进制数转二进制
- Redis database
- Contents of encoding-indexes.js file printed with Bluetooth:
- navicat connects to MySQL and reports an error: 1045 - Access denied for user 'root'@'localhost' (using password YES)
- LeetCode brush topic series - 787 K station transfer within the cheapest flight
- apisix-Getting Started
- Linux CentOS8安装Redis6
- APP Bluetooth connection test of test technology
- swinIR论文阅读笔记
猜你喜欢
随机推荐
25K test old bird's 6-year experience in interviews, four types of companies, four types of questions...
Automated operation and maintenance tools - ansible, overview, installation, module introduction
mysql实现按照自定义(指定顺序)排序
Redis-----非关系数据库
Alluxio为Presto赋能跨云的自助服务能力
Brush LeetCode topic series - 10. Regular expression match
Detailed explanation of the software testing process (mind map) of the first-tier manufacturers
6W+字记录实验全过程 | 探索Alluxio经济化数据存储策略
navicat connects to MySQL and reports an error: 1045 - Access denied for user 'root'@'localhost' (using password YES)
程序员写PPT的小技巧
How Navicat Connects to MySQL
MySQL导入sql文件的三种方法
nacos注册中心
51 MCU peripherals: DS18B20
C语言入门实战(13):十进制数转二进制
Install and use Google Chrome
ApiPost 真香真强大,是时候丢掉 Postman、Swagger 了
【漫画】2021满分程序员行为对照表(最新版)
Google notes cut hidden plug-in installation impression
分布式文件存储服务器之Minio对象存储技术参考指南