GyroDropout#
- class composer.algorithms.GyroDropout(p=0.5, sigma=256, tau=16)[source]#
Replaces all instances of torch.nn.Dropout with a GyroDropout.
By masking Dropout layer, this usually improves accuracy.
- Parameters
Example
from composer.algorithms import GyroDropout algorithm = GyroDropout(p=0.5, sigma=256, tau=16) trainer = Trainer( model=model, train_dataloader=train_dataloader, max_duration="100ep", algorithms=[algorithm], optimizers=[optimizer] )