Skip to content

## What's broken MaskedLinearOperator.to(device=...) crashes with AttributeError when called with a device but no dtype (e.g. .to(device="cpu")). The base LinearOperator.to() handles device-only moves fine; this subclass override (added to keep bool masks from being cast to float) regresses that path.#133

Open
devteamaegis wants to merge 1 commit into
cornellius-gp:mainfrom
devteamaegis:fix/masked-to-device-no-dtype

Commits

Commits on Jun 17, 2026