当前位置:网站首页>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 .
边栏推荐
- Shanghai Telecom released public computing services and signed the action plan of "Joint Innovation Center for intelligent computing applications" with Huawei and other partners
- Cookies and session
- Experience sharing of automatic test for students with monthly salary of 28K
- Combination of Oracle and Premier League statistics and presentation
- 25 openwrt guest network add
- Security exception handling mechanism
- 重要的 SQL Server 函数 - 其他函数
- 关系数据库事务中的对象锁定
- 校园流浪猫信息记录和分享的小程序源码
- Seamless support for hugging face community, colossal AI low-cost and easy acceleration of large model
猜你喜欢

Information system project manager (2022) - key content: Project Procurement Management (12)
![[untitled]](/img/c3/cf88f04d5aaba61d3a7464ff56ce15.png)
[untitled]

VAE generation model (with VAE implementation MNIST code)

Information system project manager (2022) - key content: Project Risk Management (11)

Go结构体

glusterfs 文件未挂载,权限: r-s

Linux - MySQL advanced (day19)

Cloud native Devops status survey questionnaire solicitation: kodelurover launched jointly with oschina

Information system project manager (2022) - key content: Project Portfolio Management (19)
![[kinematics] simulation of orbital angular momentum based on MATLAB [including Matlab source code 1971]](/img/5e/dfe029490183ee74687606941ce98e.jpg)
[kinematics] simulation of orbital angular momentum based on MATLAB [including Matlab source code 1971]
随机推荐
The State Administration of market supervision exposes typical cases of food safety
idea启动项目mvn命令终端用不了法将“mvn”项识别为 cmdlet
Experience sharing of automatic test for students with monthly salary of 28K
UBI read only file system
Object locking in relational database transactions
Chinese Remainder Theorem of X problem
Kingbasees Security Guide for Jincang database -- 5.2. data integrity protection
Power consumption: leakage power
Some personal understandings of openpose
【YOLOv5实战5】基于YOLOv5的交通标志识别系统-YOLOv5整合PyQt5
Kingbasees Security Guide for Jincang database -- 5.1. database transmission security
pl/sql之各参数详解(“箱子模型“)
Combination of Oracle and Premier League statistics and presentation
Simple summary of Modbus Protocol
Information system project manager (2022) - key content: Information System Security Management (20)
[735. Planetary collision]
Docking with Hang Seng express ― dolphin DB NSQ plug-in tutorial
金仓数据库KingbaseES安全指南--6.1. 强身份验证简介
RT thread changes the print serial port (add other functions on the basis of BSP)
Adding DSP library to STM32F103 and its solution