Skip to contents

The torch floating-point dtype to use for accelerated tensors: float64 everywhere except MPS, which cannot represent float64 and so is capped at float32 (its maximum precision).

Usage

getBackendDtype()

Examples

if (checkGPU()) getBackendDtype()