cellmap_data.utils.dtype

cellmap_data.utils.dtype#

Functions

torch_max_value(dtype)

Get the maximum value for a given torch dtype.

cellmap_data.utils.dtype.torch_max_value(dtype: dtype) int[source]#

Get the maximum value for a given torch dtype.

Parameters:

dtype (torch.dtype) – Data type.

Returns:

Maximum value.

Return type:

int