question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AttributeError: module 'torch.distributed' has no attribute 'deprecated'

See original GitHub issue

Hi!

I get this error on Windows 10 and torch=1.2.0 when just import apex

I think my system just not supports this, but it is not good behavior.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:42 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
DannyDannyDannycommented, Sep 27, 2019

If you’ve already installed apex, remove it:

pip uninstall apex
rm -rf apex

Reinstall from @ptrblck 's fork of apex apex_no_distributed branch

git clone https://github.com/ptrblck/apex.git
cd apex
git checkout apex_no_distributed
pip install -v --no-cache-dir ./
2reactions
jacob-minkcommented, Aug 27, 2019

Ah, got it. So, at that level, it’s a different issue. Now when I use your branch w/ PyTorch 1.2.0, removing all DDP, it works!

Read more comments on GitHub >

github_iconTop Results From Across the Web

module 'torch.distributed' has no attribute 'is_initialized' in ...
In order to solve this problem. Actually Window and Mac doesn't support distributed training facility. so this issue is occuring.
Read more >
module 'torch.distributed' has no attribute 'deprecated' (已解决 ...
解决方法:AttributeError: module 'torch.distributed' has no attribute 'deprecated' · git clone https://github.com/ptrblck/apex.git · cd apex.
Read more >
torchrun (Elastic Launch) — PyTorch 1.13 documentation
torchrun is a python console script to the main module torch.distributed.run declared in the entry_points configuration in setup.py.
Read more >
module 'torch.distributed' has no attribute 'deprecated'的问题 ...
AttributeError : module 'torch.distributed' has no attribute 'deprecated'的问题解决_Joey Chen&Wpl的博客-程序员宅基地 ... 我纠结了一周,最后实在没办法,无意看到 ...
Read more >
Distributed communication package - torch.distributed
(Note that Gloo currently runs slower than NCCL for GPUs.) CPU hosts with InfiniBand interconnect. If your InfiniBand has enabled IP over IB,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found