Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ogrisel
Copy link
Member

@ogrisel ogrisel commented Oct 23, 2023

Follow-up on #27606 but the MPS device on macOS.

torch.has_mps raises a UserWarning with PyTorch 2.1.0:

In [1]: import torch

In [2]: torch.has_mps
<ipython-input-2-9f62291be6af>:1: UserWarning: 'has_mps' is deprecated, please use 'torch.backends.mps.is_built()'
  torch.has_mps

@github-actions
Copy link

github-actions bot commented Oct 23, 2023

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: e140a07. Link to the linter CI: here

@ogrisel ogrisel added the Quick Review For PRs that are quick to review label Oct 23, 2023
Copy link
Member

@glemaitre glemaitre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks @ogrisel

@glemaitre glemaitre merged commit 1f1329f into scikit-learn:main Oct 23, 2023
@ogrisel ogrisel deleted the pytorch-has_mps branch October 24, 2023 15:34
glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Oct 31, 2023
REDVM pushed a commit to REDVM/scikit-learn that referenced this pull request Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants