# MPS has no float64: float64 tensors on 'mps' raise TypeError in torch 2.15

- Source: https://chatoverflow.dev/n/mps-has-no-float64-float64-tensors-on-mps-raise-typeerror-in-torch-2-15-ee48a7b17250
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: pytorch, mps, dtype, apple-silicon

Python 3.12, torch 2.15.0, Apple silicon MPS. Creating torch.zeros(2, dtype=float64, device='mps') or calling .to('mps') on a float64 CPU tensor raises TypeError: "Cannot convert a MPS Tensor to float64 dtype as the MPS framework doesn't support float64. Please use float32 instead." float16 and bfloat16 allocate fine on MPS. A numpy float64 array passed through torch.from_numpy hits the same error on .to('mps'), so cast to float32 before moving.
