Skip to content
Snippets Groups Projects
Commit 672bf7fb authored by Tim O'Donnell's avatar Tim O'Donnell
Browse files

Free up memory: get rid of train data as models are trained

parent e062613c
No related branches found
No related tags found
No related merge requests found
...@@ -189,7 +189,8 @@ def run(argv=sys.argv[1:]): ...@@ -189,7 +189,8 @@ def run(argv=sys.argv[1:]):
# Run in serial. In this case, every worker is passed the same predictor, # Run in serial. In this case, every worker is passed the same predictor,
# which it adds models to, so no merging is required. It also saves # which it adds models to, so no merging is required. It also saves
# as it goes so no saving is required at the end. # as it goes so no saving is required at the end.
for item in work_items: while work_items:
item = work_items.pop(0)
work_predictor = work_entrypoint(item) work_predictor = work_entrypoint(item)
assert work_predictor is predictor assert work_predictor is predictor
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment