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

Module not found error #2

Open
q3erf opened this issue Dec 1, 2021 · 6 comments
Open

Module not found error #2

q3erf opened this issue Dec 1, 2021 · 6 comments

Comments

@q3erf
Copy link

q3erf commented Dec 1, 2021

ddp.py line: 3
There is no LightningDistributedDataParallel in pytorch_lightning.overrides.data_parallel.

@jrwnter
Copy link
Owner

jrwnter commented Dec 1, 2021

hi, did you install the specified versions of pytorch and pytroch-lightning? I think ptl changes the this module in later versions...

@q3erf
Copy link
Author

q3erf commented Dec 1, 2021

hi, did you install the specified versions of pytorch and pytroch-lightning? I think ptl changes the this module in later versions...

thanks for your reply!
I I followed the Prerequisites and installed pytorch==1.7.1 and pytorch-lightning==1.5.4, with torch-geometric==1.7.1

@jrwnter
Copy link
Owner

jrwnter commented Dec 1, 2021

Hi, try pytorch-lightning==1.3.1, as specified. I will try to make things work with later versions, but for some reasons I had worse results with later ptl version (which should not be the case...)

@q3erf
Copy link
Author

q3erf commented Dec 1, 2021

I have tried pytorch-lightning==1.3.1 and it works!
BUT there is a new problem that p = np.random.randint(low=self.p_min, high=self.p_max) in synthetic_graphs/data.py line:100, where low=0.4, high=0.6 settings are errors for this line.
I don't understand this a bit, and thanks for your replies!

@IreneTallini
Copy link

Same, I solved by replacing the line with np.random.uniform(low=self.p_min, high=self.p_max)

@q3erf
Copy link
Author

q3erf commented Oct 26, 2022 via email

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

3 participants