mirror of
https://github.com/vladmandic/sdnext.git
synced 2026-10-12 11:39:52 +00:00
Tile tensor is a slice of the input x, so tile.device equals x.device. Using x.device instead of hardcoded "cuda" makes the tiled encoder work on any accelerator (CUDA, NPU, MPS, XPU) without crashing. The tile's device is already inherited from x, so .to(x.device) is a no-op on CUDA — the change only affects non-CUDA backends.