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

fix(learner): LearnerTorchModel now works in parallel settings #350

Merged
merged 4 commits into from
Feb 7, 2025

Conversation

sebffischer
Copy link
Member

Because LearnerTorchModel stored an instantiated nn_module, this caused issues when transferring the learner to the worker, e.g. when using callr encapsulation.
This is now solved by serializing the network and unserializing it during training.

Because `LearnerTorchModel` stored an instantiated `nn_module`,
this caused issues when transferring the learner to the
worker, e.g. when using callr encapsulation.
This is now solved by serializing the network and unserializing
it during training.
@sebffischer sebffischer merged commit a5e7403 into main Feb 7, 2025
@sebffischer sebffischer deleted the fix-learner-torch-model branch February 7, 2025 11:38
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