您当前的位置: 首页 >  ar

Xavier Jiezou

暂无认证

  • 2浏览

    0关注

    394博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Warning: find_unused_parameters=True was specified in DDP constructor……

Xavier Jiezou 发布时间:2022-05-27 00:14:33 ,浏览量:2

项目场景

使用 Pytorch Lightning 训练模型。

问题描述

Warning: find_unused_parameters=True was specified in DDP constructor, but did not find any unused parameters. This flag results in an extra traversal of the autograd graph every iteration, which can adversely affect performance.

解决方案
Trainer(strategy="ddp_find_unused_parameters_false")
引用参考

https://github.com/PyTorchLightning/pytorch-lightning/discussions/6761

关注
打赏
1661408149
查看更多评论
立即登录/注册

微信扫码登录

0.0396s