-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Fixed: #1722 Run out of memory #1724
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
base: master
Are you sure you want to change the base?
Conversation
Update utils.py and test by using `break` instead of `raise`
Codecov Report
@@ Coverage Diff @@
## master #1724 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 51 51
Lines 3411 3413 +2
=========================================
+ Hits 3411 3413 +2
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix!
If history is None, it should trigger this error. To your test, does it trigger it?
We can first add a if
to check its None, return an empty dict.
Check for empty dict in Oracle.update_trial
to return invalid status.
I can make the change if you prefer?
Will be the changes small, then I would prefer if you would do it because I have to first get into the code. Otherwise, I will take later a look. |
@Anselmoo I will make the fix then, it may take some time. Thanks. |
This is blocked by: |
if batch_size == 1: | ||
raise e | ||
print( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure if using print a right approach here?
Update utils.py and test by using
break
instead ofraise
Which issue(s) does this Pull Request fix?
resolves #1722
Details of the Pull Request
According to discussion #1721, the
raise
will be replaced bybreak
for running out of memory in the case ofbatch_size==1
.