mipcandy.data.convertion#
Module Contents#
Functions#
|
|
|
|
API#
- mipcandy.data.convertion.convert_ids_to_logits(ids: torch.Tensor, num_classes: int, *, channel_dim: int = 1) torch.Tensor[source]#
- Parameters:
ids – class ids (…, 1, …)
num_classes – number of classes
channel_dim – the index of the channel dimension
- Returns:
logits (…, num_classes, …)