moscot.backends.ott.OTTOutput.to

OTTOutput.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:

OTTOutput

Returns:

: Self transferred to the device.