The `step` function in the `torch.optim.lr_scheduler.LambdaLR` class is used to update the learning rate of the optimizer during training. It multiplies the current learning rate by a pre-defined lambda function. This function can be customized based on the current epoch or iteration.
Python LambdaLR.step - 31 examples found. These are the top rated real world Python examples of torch.optim.lr_scheduler.LambdaLR.step extracted from open source projects. You can rate examples to help us improve the quality of examples.