当前位置:网站首页>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] 结果是一样的。
边栏推荐
- 怎样在win10家庭版中使用Hyper-V
- Huffman coding principle
- Merge_sort
- 【无标题】转载
- IV Actual combat - global unified return result class
- [graduation season _ advanced technology Er] farewell to yourself who has been confused for the past two years. Regroup, junior I'm coming
- Uitoolkit tool template project
- SQL shell (PSQL) tool under PostgreSQL
- Torth file read vulnerability (cnvd-2020-27769)
- buuReserve(4)
猜你喜欢

Delete ^m from VIM

Click "Niuke | daily question" to eliminate it

『HarmonyOS』DevEco的下载安装与开发环境搭建

二叉树知识总结

7. Reverse Integer整数反转

How to use Hyper-V in win10 Home Edition

28. Implement strStr()实现 strStr()

Display Chinese characters in uitoolkit

LTS(Light-Task-Scheduler)
![[hardware ten treasures] - 7.1 [dynamic RAM] key points of DDR hardware design](/img/ba/87cd3b1600bcb6f2839e7bb093ff62.png)
[hardware ten treasures] - 7.1 [dynamic RAM] key points of DDR hardware design
随机推荐
Do you know what "parts" MySQL contains?
Summary of common usage of dev treelist
XSS labs (1-10) break through details
MySQL table write lock
How to use Hyper-V in win10 Home Edition
问题:Can‘t download sh shellcheck. Please install it manually及shell脚本的一些命令使用
在第一次使用德国小鸡要注意的地方
Rust language - slice type (&[u8])
强网杯2021 pwn 赛题解析——baby_diary
Is it safe to invest in treasury bonds in 2022? How do individuals buy treasury bonds?
Experimental flags: --disable_ admission_ control=false --enable_ rm=false --llama_ callback_ port=28000
20220724 三角函数系的正交性
Multi-objective collaborative decision-making in supply chain
Heap sort
How to open an account online for Guohai Securities? Is it safe to open an account
MySQL read / write lock
Acwing- daily question
Fastdfs supports dual IP and IPv6
Sorting problem: bubble sort, select sort, insert sort
源代码加密技术发展阶段