You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#I am not entirely sure if this is necessary. I believe that calling release on the futures should be enough to free up memory. If memory issues persist, this may be a good place to start.
512
+
#client.run(gc.collect) #run garbage collection to free up memory
509
513
510
514
###############################
511
515
# Step 2: Early Stopping
@@ -717,6 +721,10 @@ def optimize(self):
717
721
#done, cleanup futures
718
722
forfutureinsubmitted_futures.keys():
719
723
future.cancel()
724
+
future.release() #release the future
725
+
726
+
#I am not entirely sure if this is necessary. I believe that calling release on the futures should be enough to free up memory. If memory issues persist, this may be a good place to start.
727
+
#client.run(gc.collect) #run garbage collection to free up memory
# check if the future has been running for too long, cancel the future
192
196
# we multiply max_eval_time_mins by 1.25 since the objective function in the future should be able to cancel itself. This is a backup in case it doesn't.
#I am not entirely sure if this is necessary. I believe that calling release on the futures should be enough to free up memory. If memory issues persist, this may be a good place to start.
232
+
#client.run(gc.collect) #run garbage collection to free up memory
#I am not entirely sure if this is necessary. I believe that calling release on the futures should be enough to free up memory. If memory issues persist, this may be a good place to start.
256
+
#client.run(gc.collect) #run garbage collection to free up memory
0 commit comments