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

Prediction not possible on Windows machines due to cuda error #10

Closed
Maddonix opened this issue Feb 16, 2021 · 1 comment
Closed

Prediction not possible on Windows machines due to cuda error #10

Maddonix opened this issue Feb 16, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@Maddonix
Copy link

During prediction on a windows machine a a OS Error occurs due to:

"RuntimeError: cuda runtime error (801) : operation not supported at ..\torch/csrc/generic/StorageSharing.cpp:247"

Problem: Storage sharing currently not supported on windows.

Proposed solution: Ensemble learner takes "num_workers" argument and passes it to subsequent functions. If num_workers == 0, prediction works for me.

@matjesg matjesg added the bug Something isn't working label Mar 3, 2021
@matjesg
Copy link
Owner

matjesg commented Mar 3, 2021

Thanks for bringing this up!

You can now pass keyword arguments to the Ensemble Learner, e.g.,

EnsembleLearner(files=files, label_fn=label_fn, path=path, dl_kwargs={'num_workers':0})

The dl_kwargs are used for contonstructing the dataloaders (see https://docs.fast.ai/data.load.html#DataLoader)

@matjesg matjesg closed this as completed Mar 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants