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

Update torch_utils.py to use gpu if available #89

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

yeelauren
Copy link
Contributor

No description provided.

@StephenChan
Copy link
Member

I'm fine with this. In the future, might be good to make this optional, in case GPU is available but still not desired in a particular environment - for reasons of resource balancing, heat/fan noise, cost, etc. But coralnet shouldn't care at this point since its Batch-spun EC2 instances don't have GPUs.

(Just note that pyspacer currently only uses PyTorch for feature extraction, not training or classification.)

I'll go ahead and merge this if that sounds good.

@StephenChan StephenChan merged commit fe6d775 into coralnet:main Jan 25, 2024
3 checks passed
@yeelauren yeelauren deleted the patch-1 branch February 1, 2024 21:00
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