Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error? #2

Closed
WangWenhao0716 opened this issue Jul 27, 2021 · 1 comment
Closed

Error? #2

WangWenhao0716 opened this issue Jul 27, 2021 · 1 comment

Comments

@WangWenhao0716
Copy link

Hi, thanks for the excellent job!
When I install it from pip, and

import torchshard as ts
ts.init_process_group(group_size=2) 

The AttributeError occurs:

AttributeError: module 'torchshard' has no attribute 'init_process_group'
@kaiyuyue
Copy link
Owner

Ops! Sorry about this. It should be ts.distributed.init_process_group(group_size=2) . I have fixed it in README.

Please refer to the https://github.com/KaiyuYue/torchshard/blob/main/docs/api/dist.md#init_process_group.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants