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

Fixing cross validation in parallel causing the run to freeze #33

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MaxBalmus
Copy link
Contributor

When trying to run cross validation in parallel, I've noticed that the run would freeze and all the cores would be freed exactly at the end of the process. Following some testing I discovered that issue stemmed from the inclusion of torch tensor within the output data structure of __train_sp. To prevent this from happening again I first convert the tensors with best_model to numpy arrays and revert them to tensors after all the results have been pooled back together on one core.

…om the output. This no fixes an issue where cross_validation would fail when using more workers
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

Successfully merging this pull request may close these issues.

1 participant