[debug] Expected to have finished reduction in the prior iteration before starting a new one.
问题描述
训练网络时出现错误:
RuntimeError: Expected to have finished reduction in the prior iteration before starting a new one.
原因分析
参考该issue
I met the same issue.
But i solved it.
The reason is that in my model class, I define a fpn module with 5 level output feature maps in the init function,
but in forward function I only use 4 of them.
When I use all of them, the problem was solved.
This is my supposed conclusion: you should use all output of each module in forward function.
简单来说,就是在网络中定义了module,但没有使用
当然,这个module可以使最简单的网络层,也可以是更复杂的结构
解决方案
找到定义但没有使用的module,要么删掉,要么使用
[debug] Expected to have finished reduction in the prior iteration before starting a new one.相关推荐
- RuntimeError: Expected to have finished reduction in the prior iteration before starting a new one.
RuntimeError: Expected to have finished reduction in the prior iteration before starting a new one. ...
- pytorch DistributedDataParallel提示未参与loss计算的变量错误
错误提示: RuntimeError: Expected to have finished reduction in the prior iteration before starting a new ...
- 【持续更新】一些Trick
这一篇用于记录一些学习中收获的trick,持续更新. Linux 指令 查看GPU状态 :watch -n1 gpustat 查看CPU进程 : top ssh远程连接服务器: ssh ...
- IDE Framework之mmdetection使用记录20200707-
文章目录 mmdetection代码阅读 Git版本控制时的commit message mmdet_v2.7 MMDet v2.7.0 MMDet v2.3.0 {Config}与{ConfigDi ...
- Lua 5.1 参考手册
Lua 5.1 参考手册 by Roberto Ierusalimschy, Luiz Henrique de Figueiredo, Waldemar Celes 云风 译 www.codingno ...
- show attend and tell代码实现(绝对详细)
show attend and tell代码实现 参考的两位大佬: https://github.com/sgrvinod/a-PyTorch-Tutorial-to-Image-Captioning ...
- Android Glide图片加载框架(二)源码解析之into()
文章目录 一.前言 二.源码解析 1.into(ImageView) 2.GlideContext.buildImageViewTarget() 3.RequestBuilder.into(Targe ...
- java+connect+time+out_聊聊jdk httpclient的connect timeout异常
序 本文主要研究一下httpclient的connect timeout异常 实例代码 @Test public void testConnectTimeout() throws IOExceptio ...
- lua 5.3 英文手册
http://www.lua.org/manual/5.3/manual.html lua 5.3 英文手册 Lua Lua 5.3 Reference Manual by Roberto Ierus ...
最新文章
- php token的生成和使用
- 结构光测距相位差_ROHM确立新型VCSEL模块技术 有助于提高测距精度
- IIS7整合Tomcat6
- 逻辑备库的Swichover和Failover
- 分布式与人工智能课程(part9)--Pandas绘图
- 如何学习 azure_Azure的监督学习
- 浅谈C++类(5)--友元
- Linux内存带宽的一些测试笔记
- Windows Phone 7知识锦分享【第二季】
- 狗熊冬眠_4本最佳的冬眠书–Spring冬眠书
- 英特尔驱动程序下载_如何修复英特尔计算机上的“此计算机未验证正在安装的驱动程序”...
- 浪曦struts2学习笔记3
- 计算机上怎么在表格输入分秒,“excel表格怎么输入角度“excel 表格中怎么输入分秒的符号...
- 打印没反应/打印耗时长/not accessible
- 机器学习笔试题精选(六)
- dubbo线程池exhausted
- 模型优化中的过拟合与欠拟合
- Error processing condition on org.springframework.boot.actuate.autoconfigure.audit.AuditEventsEndpoi
- 养蛙火爆,大数据解读《旅行青蛙》崛起之谜
- 前端基础知识学习 XML JSON RESTFUL SOAP WEBSERVICE