moscot.backends.ott.GraphOTTOutput.to

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

GraphOTTOutput

Returns:

: Self transferred to the device.