library("SpaNorm")
getBackendDevice()[1] "cpu"
Resolves (once per session, then cached – see resetGPUCache) the torch device to use for accelerated operations: “cuda” if a CUDA GPU is available, else “mps” on Apple Silicon, else “cpu”. Exposed for downstream packages (e.g. spiDE) that push their own tensors onto the same device SpaNorm is using.
getBackendDevice()
a character, one of “cuda”, “mps” or “cpu”.