当前位置:网站首页>RuntimeError: stack expects each tensor to be equal size, but got [8] at entry 0 and [2] at entry 2
RuntimeError: stack expects each tensor to be equal size, but got [8] at entry 0 and [2] at entry 2
2022-07-28 04:26:00 【jst100】
Recently debugging pytorch The code encountered the following problems , Because the error he reported was not in our own code , But in pytorch The bag , So I was confused at the beginning .
After consulting the information http://www.zzvips.com/article/204910.html
It says that the place where the error is reported is located __getitem__ In this function , That is to say, the dimensions of the return value here are different , So you can output the returned value in this function to check 
For example, I found that there are obvious differences here , Then apply the right medicine to the case .
边栏推荐
- [blood vessel detection] Based on MATLAB mom method, combined with Hessian and curve fitting, blood vessel diameter measurement [including Matlab source code, 1970]
- @Requiredargsconstructor annotation
- What to do when encountering slow SQL? (next)
- [Luogu p4590] garden party (DP set DP)
- 21 openwrt kernel module changed to.Ko automatic loading
- Network visualization: features of convolution kernel and CNN visualization (through the attention part of gradient visualization network)
- Seamless support for hugging face community, colossal AI low-cost and easy acceleration of large model
- Campus stray cat information recording and sharing applet source code
- [performance optimization methodology series] III. core idea of performance optimization (2)
- MySQL:数据类型和运算符
猜你喜欢

C语言初阶——循环语句(while,for,do while)
![[mathematical modeling] Based on MATLAB seismic exploration Marmousi model [including Matlab source code, 1977]](/img/fd/6b261670c12e4d89c27364bcdf2a02.jpg)
[mathematical modeling] Based on MATLAB seismic exploration Marmousi model [including Matlab source code, 1977]

RT thread changes the print serial port (add other functions on the basis of BSP)

MATLB | location and constant volume IEEE30 node implementation of distributed energy

@Requiredargsconstructor annotation

null安全与异常

IPC: multi process binder Aidl user guide, including cases

Study notes of Gu Yujia on July 27, 2022

Fedformer MOE module

idea2022更改本地仓库,配置阿里云中央仓库
随机推荐
【伸手党福利】微信中h5网页调起扫一扫最简单的方法
ESP8266 WIFI 模块和手机通信
Go structure
功耗:Leakage Power
Servlet usage
H265/HEVC名词解释-- CTU,CTB,CU,CB,TU,PU,TB,PB,LCU,Slice,Tile,Chroma,Luma,I帧,B帧,P帧
Kingbasees security guide of Jincang database -- 6.2. Configuration files related to authentication
setup和hold timing分析不满足是解决方法
Use Baidu developer tool 4.0 to build a dedicated applet IDE
金仓数据库KingbaseES安全指南--4 数据访问保护
Remove screen cutting and copying restrictions
Information system project manager (2022) - key content: Project Risk Management (11)
Practice and thinking of AI standardization engine in pink client
[coding and decoding] Huffman coding and decoding based on Matlab GUI [including Matlab source code 1976]
高数_第4章__曲线积分
Information system project manager (2022) - key content: Strategic Management (17)
21 openwrt kernel module changed to.Ko automatic loading
What to do when encountering slow SQL? (next)
金仓数据库KingbaseES安全指南--6.2. 身份验证相关的配置文件
After login, the upper right corner changes to enter the login status