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

Backwards compatibility with the MPS support #83

Merged
merged 2 commits into from
Jan 8, 2024

Conversation

ahoust17
Copy link
Contributor

@ahoust17 ahoust17 commented Jan 7, 2024

This is a small fix which checks if torch.backends has an 'mps' attribute (older versions do not). There is still no way to check on GPU usage for the mps device, but this will surely be coming in the future.

@codecov-commenter
Copy link

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (2d77fbd) 75.98% compared to head (0802e4a) 75.98%.
Report is 5 commits behind head on master.

Files Patch % Lines
atomai/trainers/trainer.py 50.00% 2 Missing ⚠️
atomai/utils/nn.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master      #83   +/-   ##
=======================================
  Coverage   75.98%   75.98%           
=======================================
  Files          71       71           
  Lines        7141     7141           
=======================================
  Hits         5426     5426           
  Misses       1715     1715           
Flag Coverage Δ
unittests 75.98% <40.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ziatdinovmax ziatdinovmax self-requested a review January 8, 2024 01:10
@ziatdinovmax ziatdinovmax merged commit 06b121c into pycroscopy:master Jan 8, 2024
2 checks passed
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

3 participants