报错:TypeError: DistributedOptimizer() got an unexpected keyword argument ‘--------’

记录一下问题的结决办法

环境:

tensorflow:tensorflow-gpu1.14.0

horovod:0.19.5

python:3.7.9

CMake:3.21.1

是否安装了nccl:是

nccl版本:nccl_2.6.4-1+cuda10.0_x86_64

CUDA:CUDA10.0

CUDNN_VERSION=7.6.5.32

我在运行官方给的实例会报类似的错误,我的报错是”TypeError: DistributedOptimizer() got an unexpected keyword argument 'gradient_predivide_factor'“我在github上查找到了相关的可能的解决办法。作者亲自解答,我觉得可行度很高

先附上问题网址https://github.com/horovod/horovod/issues/774

Hey @lakshmiumenon, the parameter should be backward_passes_per_step with an additional underscore. That's one possible cause of this error (assuming that wasn't just a transcription error).

That parameter was added very recently, and those changes haven't yet been packaged into a release yet, so it's possible that your installed version of Horovod is behind the version of the examples you're using.

I'd suggest checking out the version of the examples that is the same as your version of Horovod. For example, if you installed Horovod v0.15.2, then you could checkout that tag in your examples repo: git checkout v0.15.2.

这是作者的答复,说白了就是horovod的版本不够,导致最新的一个参数无法引用。

解决办法:将horovod更新到最新版本就行了。 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值