gammagl.utils.mask_to_index

class mask_to_index(mask)[source]

Converts a mask to an index representation.

Parameters:

mask (tensor) – The mask.