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

Huge Time Cost When Running the Code #35

Closed
hyalvin opened this issue Sep 29, 2021 · 1 comment
Closed

Huge Time Cost When Running the Code #35

hyalvin opened this issue Sep 29, 2021 · 1 comment

Comments

@hyalvin
Copy link

hyalvin commented Sep 29, 2021

Hi, thanks to your work!
But I have got a problem when running this code with an 8*GPU(A100) server, it just stuck on this two line
model = torch.nn.DataParallel(model).cuda()
for iter, pack in enumerate(train_data_loader):
And also it cost a lot of time to run evert option in the traning process like F.interpolate
I wonder if there is something wrong with my conda env?

@hyalvin hyalvin changed the title How Huge Time Cost When Running the Code Sep 29, 2021
@hyalvin
Copy link
Author

hyalvin commented Sep 29, 2021

OK, I have solved this problem with the help of my mentor.
It must be that when creating a new conda env, the version of CUDA in this env is not matched with that in the server home, and thus when moving the model to GPU, something wrong happened, what a terrible problem!

@hyalvin hyalvin closed this as completed Sep 29, 2021
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

1 participant