moscot.base.output.BaseSolverOutput.to#

abstract BaseSolverOutput.to(device=None)[source]#

Transfer self to another compute device.

Parameters:

device (Union[Literal['cpu', 'gpu', 'tpu'], str, None]) – Device where to transfer the solver output. If None, use the default device.

Return type:

BaseSolverOutput

Returns:

: Self transferred to the device.