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

Skip AMP check on MPS #9189

Merged
merged 2 commits into from
Aug 29, 2022
Merged

Skip AMP check on MPS #9189

merged 2 commits into from
Aug 29, 2022

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented Aug 28, 2022

Signed-off-by: Glenn Jocher [email protected]

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Improved device compatibility for Automatic Mixed Precision (AMP) in YOLOv5.

πŸ“Š Key Changes

  • AMP is now explicitly disabled on both CPU and Metal Performance Shaders (MPS) devices.

🎯 Purpose & Impact

  • 🎯 Purpose: To prevent users from attempting to use AMP on devices that don't support it, which are now specified as CPU and MPS, enhancing code robustness.
  • πŸ’₯ Impact: Ensures better stability and clarity for users working on different hardware, as attempting to use AMP on unsupported devices would likely result in errors or suboptimal performance.

Signed-off-by: Glenn Jocher <[email protected]>
@glenn-jocher glenn-jocher self-assigned this Aug 28, 2022
@glenn-jocher glenn-jocher merged commit e57275a into master Aug 29, 2022
@glenn-jocher glenn-jocher deleted the glenn-jocher-patch-3 branch August 29, 2022 00:00
ctjanuhowski pushed a commit to ctjanuhowski/yolov5 that referenced this pull request Sep 8, 2022
Signed-off-by: Glenn Jocher <[email protected]>

Signed-off-by: Glenn Jocher <[email protected]>
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

1 participant