您的位置:首页 > 游戏 > 手游 > 亲测解决The client socket has failed to connect to

亲测解决The client socket has failed to connect to

2024/12/23 7:58:26 来源:https://blog.csdn.net/Davidietop/article/details/141300916  浏览:    关键词:亲测解决The client socket has failed to connect to

这个问题是因为深度学习的程序(服务)跟本地主机连接不上,解决方法是确认rank起始数为0。

报错原文

[W socket.cpp:663] [c10d] The client socket has failed to connect to [csdn-xiaohu]:12345 (errno: 22 - Invalid argument).

解决方法

Rank应该从0开始,Rank should start from 0。

opt.rank = kwargs.get("start_rank", 0) + opt.gpu_id

To

opt.rank = kwargs.get("start_rank", 0) + i

原版笔记

If the socket is not valid.
The call is being blocked and cannot get to the client who opened it.
The client has closed/is closing the socket at the time of the call.

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com