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

hyper_params are shared among all callers --> Fix #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

makra89
Copy link

@makra89 makra89 commented May 23, 2022

At the moment the object returned by 'get_hyper_params' is shared among multiple callers. This means that if this method is called by two separate models and both model adapt their hyper_params after calling this function, one of the models might end up with the parameters from the other one.
Fix this by returning a copy instead of a reference

At the moment the object returned by 'get_hyper_params' is shared among multiple callers. This means that if this method is called by two separate models and both model adapt their hyper_params after calling this function, one of the models might end up with the parameters from the other one.
Fix this by returning a copy instead of a reference
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