ocl.utils.masking
Utilities related to masking.
CreateSlotMask
Module intended to create a mask that marks empty slots.
Module takes a tensor holding the number of slots per batch entry, and returns a binary mask of shape (batch_size, max_slots) where entries exceeding the number of slots are masked out.
Source code in ocl/utils/masking.py
CreateRandomMaskPatterns
Create random masks.
Useful for showcasing behavior of metrics.