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

Support running on CPU #25

Merged
merged 1 commit into from Nov 9, 2020
Merged

Conversation

f0k
Copy link
Contributor

@f0k f0k commented Nov 22, 2019

Since you already provide a pure-PyTorch implementation that does not require PyINN, the code does not actually require CUDA. This PR removes the use_gpu assertions from the implementation and adds a --cpu flag both to the demo and benchmark script.
(Side note: pydensecrf is actually faster on CPU, so in practice ConvCRF is only useful on GPU, but running on CPU is still useful for testing purposes.)

@MarvinTeichmann MarvinTeichmann merged commit 0930637 into MarvinTeichmann:master Nov 9, 2020
@f0k f0k deleted the support-cpu branch December 13, 2020 14:44
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.

None yet

2 participants