Невозможно импортировать torch.distributed.rpc

Я пытался запустить пример RPC rnn по следующей ссылке — https://github.com/pytorch/examples/tree/master/distributed/rpc/rnn

но я не могу импортировать RPC-модуль torch.distributed и получаю следующую ошибку.

Traceback (most recent call last):
  File ".\main.py", line 6, in <module>
    import torch.distributed.rpc as rpc
  File "C:\Users\Public\Anaconda\lib\site-packages\torch\distributed\rpc\__init__.py", line 9, in <module>
    from . import backend_registry
  File "C:\Users\Public\Anaconda\lib\site-packages\torch\distributed\rpc\backend_registry.py", line 8, in <module>
    import torch.distributed.distributed_c10d as dc10d
  File "C:\Users\Public\Anaconda\lib\site-packages\torch\distributed\distributed_c10d.py", line 9, in <module>
    from .rendezvous import rendezvous, register_rendezvous_handler  # noqa: F401
  File "C:\Users\Public\Anaconda\lib\site-packages\torch\distributed\rendezvous.py", line 9, in <module>
    from . import FileStore, TCPStore
ImportError: cannot import name 'FileStore' from 'torch.distributed' (C:\Users\Public\Anaconda\lib\site-packages\torch\distributed\__init__.py) 

Версия Torch: torch 1.4.0 + CPU torchvision 0.5.0 + CPU

Ссылка на проблему Github   —  person santhosh mohan    schedule 17.02.2020

Можете ли вы правильно импортировать другие пакеты torch? У вас есть несколько сред conda на вашем компьютере? Вы уже пытались переустановить?   —  person santhosh mohan    schedule 17.02.2020

См. также:  Не удается найти репозиторий проекта на git-сервере для пользовательских хуков
Понравилась статья? Поделиться с друзьями:
IT Шеф
Комментарии: 1
  1. santhosh mohan

    Пакет PyTorch Distributed пока не поддерживает Windows. Запросы на эту функцию отслеживаются здесь: https://github.com/pytorch/pytorch/issues/37068

Добавить комментарий

;-) :| :x :twisted: :smile: :shock: :sad: :roll: :razz: :oops: :o :mrgreen: :lol: :idea: :grin: :evil: :cry: :cool: :arrow: :???: :?: :!: