已解决RuntimeError: received 0 items of ancdata
解决 of items RECEIVED RuntimeError
2023-09-27 14:27:32 时间
已解决RuntimeError: received 0 items of ancdata
报错问题
粉丝群里面的一个小伙伴敲代码时发生了报错(当时他心里瞬间凉了一大截,跑来找我求助,然后顺利帮助他解决了,顺便记录一下希望可以帮助到更多遇到这个bug不会解决的小伙伴),报错信息如下:
RuntimeError: received 0 items of ancdata
当需共享的tensor超过open files限制时,即会出现该错误。
解决方法
解决方法如下
方法一:
增加open files的限制数量:
不能用sudo ulimit -n命令,而需执行:
sudo sh -c “ulimit -n 65535 && exec su $LOGNAME”
方法二:
修改多线程的tensor方式为file_system(默认方式为file_descriptor,受限于open files数量):
torch.multiprocessing.set_sharing_strategy(‘file_system’)
福利
每周会送6本技术书籍包邮到家
由于博主时间精力有限,每天私信人数太多,没办法每个粉丝都及时回复
大家可以进社区裙或者添加博主微信
点击下方链接即可
http://t.csdn.cn/6kInJ
相关文章
- 解决MySQL报错:1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'informat
- 解决Jenkins的错误“The Server rejected the connection: None of the protocols were accepted”
- git删除本地和远程文件,解决 fatal: Not a git repository (or any of the parent directories): .git 问题
- 报错(未解决):Offset commit failed on partition xxx at offset 957: The coordinator is not aware of this member.
- curl_multi_select解决curl_multi网页假死问题
- 解决 IDEA 下 struts.xml 中 extends="struts-default" 报红的问题
- Oracle 安装报错 [INS-06101] IP address of localhost could not be determined 解决方法
- docker第三讲 docker启动redis容器以及解决redis-server启动redis直接挂的问题
- 虚拟机安装好centos配置网络问题解决
- 什么是缓存击穿、缓存穿透、缓存雪崩?如何解决?
- 【Android】插件化系列之加载异常问题如何解决?
- [转]解决Cannot change version of project facet Dynamic web module to 2.5
- python3 “POST data should be bytes or an iterable of bytes...”的解决方法
- from torch._C import * ImportError: DLL load failed解决方法
- jQuery ajax跨域请求的解决方法
- 如何在 iOS 中解决循环引用的问题
- 解决 There are no resources that can be added or removed from the server
- PHP文件锁 解决并发问题
- Mysql_解决The total number of locks exceeds the lock table size错误
- 修改salt-minion的id后报错解决方法
- Java AES加解密报错javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with padded cipher的问题原因及2种解决方式
- Python解决插入数据库乱码问题
- ESP8266之下载不进去程序终极解决方法
- android中常见的内存泄漏和解决的方法
- 微信小程序 Object of type ‘datetime‘ is not JSON serializable解决方法
- 算法积累:解决如何获取指定文件夹路径或者文件路径下所有子文件后缀为.h .m .c的文本的行数
- 解决Typora过期报错:This beta version of Typora is expired, please download and install a newer vsersion
- Qt解决:Qobject::connect queue arguments of type ‘xxxx’,Make sure ‘xxxx’ is registered using qRegister
- Stuck in the process of compiling C++ extensions 卡住解决方法 time.sleep(self.wait_seconds)