require 'torch'
x = Torch.rand(3, 2, dtype: :float32, device: 'mps')
=> Error inspecting tensor: #<RuntimeError: Cannot convert a MPS Tensor to float64 dtype as the MPS framework doesn't support float64. Please use float32 instead.>
The tensor generated datatype is actually float32, but then switch device to 'mps', the error occurs.
The tensor generated datatype is actually float32, but then switch device to 'mps', the error occurs.