Provides a helper to detect the best Pytorch device (env override, CUDA, MPS, XPU, or CPU) and to clear CUDA caches.
-
Updated
Nov 13, 2025 - Python
Provides a helper to detect the best Pytorch device (env override, CUDA, MPS, XPU, or CPU) and to clear CUDA caches.
Python agent string parser based on Udger https://udger.com/products/local_parser
Add a description, image, and links to the device-detector topic page so that developers can more easily learn about it.
To associate your repository with the device-detector topic, visit your repo's landing page and select "manage topics."