Skip to content

Adding LazyThreadPoolExecutor class #262

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

Merged
merged 2 commits into from
Mar 29, 2018
Merged

Conversation

bearpelican
Copy link
Contributor

@bearpelican bearpelican commented Mar 29, 2018

From ThreadPoolExecutor docs: the iterables are collected immediately rather than lazily
This can cause memory/timeout issues for large or infinite

Original issue: http://forums.fast.ai/t/memory-error-not-cuda-out-of-memory-error/12481
Fixed in this PR: c0e9bd9. Just adding an alternative

Original method copied from this PR - python/cpython#707
Has not been merged to the CPython library. Made a few style changes here: c112c3f

Tested here: bearpelican@e72df56

@jph00 jph00 merged commit 50ffbb9 into fastai:master Mar 29, 2018
borisdayma pushed a commit to borisdayma/fastai that referenced this pull request Aug 18, 2020
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.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy