Closed jnooree closed 1 year ago
Great! Thanks for this pr. However, could you help us by telling us about your setup? Mostly your PyTorch setup so that we can be sure.
The PyTorch version has nothing to do with this PR. It's all about the try-import code.
The problematic function, FYI:
None
does not have an attribute is_available
, indeed.
ok!
Current
_get_device
function will raiseAttributeError
ifmps
import was failed. This patch willhandle such exception and set the device toadd a function namedcpu
_mps_is_available
to resolve such issue.