torch.fx.experimental.optimization.remove_dropout torch.fx.experimental.optimization.remove_dropout(model) Removes all dropout layers from the module. Return type: Module