moscot.base.output.MatrixSolverOutput.to¶
- MatrixSolverOutput.to(device=None, dtype=None)[source]¶
Transfer self to another compute device.
- Parameters:
device (
Union[Literal['cpu','gpu','tpu'],str,None]) – Device where to transfer the solver output. IfNone, use the default device.dtype (dtype[Any] | None | type[Any] | _SupportsDType[dtype[Any]] | str | tuple[Any, int] | tuple[Any, SupportsIndex | Sequence[SupportsIndex]] | list[Any] | _DTypeDict | tuple[Any, Any])
- Return type:
- Returns:
: Self transferred to the
device.