当前位置:网站首页>shape 和 size() 区别
shape 和 size() 区别
2022-07-26 06:58:00 【wujpbb7】
shape 是属性,size() 是方法。
shape 是 numpy 中的 array 和 pytorch 中的 tensor 通用的。size() 只能用在 tensor 上。
shape[i]、size(i) 和 size()[i] 结果是一样的。
边栏推荐
- mysql优化之show profile的使用及分析
- 曲线曲率展示
- Exclusive lock
- NIO实现
- Kubernetes scheduling concept and workflow
- Sorting problem: bubble sort, select sort, insert sort
- C # use log4net plug-in to output logs to files
- Display Chinese characters in uitoolkit
- Binary tree knowledge summary
- [database] CTE (common table expression)
猜你喜欢

Delete ^m from VIM

Merge_sort

Experimental flags: --disable_ admission_ control=false --enable_ rm=false --llama_ callback_ port=28000

UIToolkit中显示汉字
![Esxi 7.0 installation supports mellanox technologies mt26448 [connectx en 10gige, PCIe 2.0 5gt/s] driver, and supports the cheapest 10GB dual fiber network card](/img/51/a5282b657b1dfed2dac476c1efee2d.png)
Esxi 7.0 installation supports mellanox technologies mt26448 [connectx en 10gige, PCIe 2.0 5gt/s] driver, and supports the cheapest 10GB dual fiber network card

【Star项目】小帽飞机大战(三)

Do you know what "parts" MySQL contains?

XSS labs (1-10) break through details

『期末复习』16/32位微处理器(8086)基本寄存器

Integrated design of signal processing systems - Design of solver functions (continuous and discrete time systems)
随机推荐
问题:Can‘t download sh shellcheck. Please install it manually及shell脚本的一些命令使用
How to solve the crash when the easygbs platform edits the device management group?
如何删除语句审计日志?
123123123
【无标题】转载
Display Chinese characters in uitoolkit
20220724 三角函数系的正交性
数据库性能测试(mysql)
An album has been released, from introductory practical demonstration to advanced live Q & A, playing with container service so easy~
从Architecture带你认识JVM
Function of hot air pad
opengauss简易版安装报错
Manifest merger failed with multiple errors, see logs
Download, installation and development environment construction of "harmonyos" deveco
QT监听socket事件,使用QSocketNotifier类
[today in history] July 18: Intel was founded; The first photo was posted on the world wide web; EBay spins off PayPal
微信小程序 - 从入门到入土
2万字带你从0到1搭建一套企业级微服务安全框架
Heap parsing and heap sorting
Database performance test (MySQL)