SIGN IN SIGN UP

Guard autocast on unsupported devices (#14)

* Guard autocast on unsupported devices

Disable autocast on MPS (and other unsupported backends) to avoid runtime
errors while keeping existing behavior on CPU/CUDA.

* Avoid hardcoding device types in disabling autocast

---------

Co-authored-by: Jan Schlüter <github@jan-schlueter.de>
T
Till Toenshoff committed
2c0389b0f24ebb2cdd8043a9a61adbf9f433287c
Parent: 7056b40
Committed by GitHub <noreply@github.com> on 2/2/2026, 9:06:34 AM