问题描述

训练网络时出现错误:

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.相关推荐

  1. 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. ...

  2. pytorch DistributedDataParallel提示未参与loss计算的变量错误

    错误提示: RuntimeError: Expected to have finished reduction in the prior iteration before starting a new ...

  3. 【持续更新】一些Trick

    这一篇用于记录一些学习中收获的trick,持续更新. Linux 指令 查看GPU状态 :watch -n1 gpustat     查看CPU进程 : top     ssh远程连接服务器: ssh ...

  4. IDE Framework之mmdetection使用记录20200707-

    文章目录 mmdetection代码阅读 Git版本控制时的commit message mmdet_v2.7 MMDet v2.7.0 MMDet v2.3.0 {Config}与{ConfigDi ...

  5. Lua 5.1 参考手册

    Lua 5.1 参考手册 by Roberto Ierusalimschy, Luiz Henrique de Figueiredo, Waldemar Celes 云风 译 www.codingno ...

  6. show attend and tell代码实现(绝对详细)

    show attend and tell代码实现 参考的两位大佬: https://github.com/sgrvinod/a-PyTorch-Tutorial-to-Image-Captioning ...

  7. Android Glide图片加载框架(二)源码解析之into()

    文章目录 一.前言 二.源码解析 1.into(ImageView) 2.GlideContext.buildImageViewTarget() 3.RequestBuilder.into(Targe ...

  8. java+connect+time+out_聊聊jdk httpclient的connect timeout异常

    序 本文主要研究一下httpclient的connect timeout异常 实例代码 @Test public void testConnectTimeout() throws IOExceptio ...

  9. lua 5.3 英文手册

    http://www.lua.org/manual/5.3/manual.html lua 5.3 英文手册 Lua Lua 5.3 Reference Manual by Roberto Ierus ...

最新文章

  1. php token的生成和使用
  2. 结构光测距相位差_ROHM确立新型VCSEL模块技术 有助于提高测距精度
  3. IIS7整合Tomcat6
  4. 逻辑备库的Swichover和Failover
  5. 分布式与人工智能课程(part9)--Pandas绘图
  6. 如何学习 azure_Azure的监督学习
  7. 浅谈C++类(5)--友元
  8. Linux内存带宽的一些测试笔记
  9. Windows Phone 7知识锦分享【第二季】
  10. 狗熊冬眠_4本最佳的冬眠书–Spring冬眠书
  11. 英特尔驱动程序下载_如何修复英特尔计算机上的“此计算机未验证正在安装的驱动程序”...
  12. 浪曦struts2学习笔记3
  13. 计算机上怎么在表格输入分秒,“excel表格怎么输入角度“excel 表格中怎么输入分秒的符号...
  14. 打印没反应/打印耗时长/not accessible
  15. 机器学习笔试题精选(六)
  16. dubbo线程池exhausted
  17. 模型优化中的过拟合与欠拟合
  18. Error processing condition on org.springframework.boot.actuate.autoconfigure.audit.AuditEventsEndpoi
  19. 养蛙火爆,大数据解读《旅行青蛙》崛起之谜
  20. 前端基础知识学习 XML JSON RESTFUL SOAP WEBSERVICE

热门文章

  1. 一文读懂语音语义识别技术的现状与未来
  2. pythonjson安装_python安装simplejson
  3. html中grid布局,CSS:玩转grid布局
  4. java sort类_JAVA Collections工具类sort()排序方法
  5. 【深度优先搜索】计蒜客:等边三角形
  6. 【java笔记】Object类
  7. 蓝桥杯2014c++真题:切面条
  8. 最简单的基于FFmpeg的AVfilter的例子-纯净版
  9. FFMPEG结构体分析:AVPacket
  10. mysql c库 示例_选择MySQL数据库进行连接的简单示例