92ec6f9f8790d0176fbafbf711d5a541b5c09e60,catalyst/callbacks/scheduler.py,SchedulerCallback,_scheduler_step,#Any#Any#,114

Before Change


            lr = scheduler.optimizer.param_groups[0]["lr"]
        else:
            scheduler.step()
            lr = scheduler.get_lr()[0]

        momentum = get_optimizer_momentum(scheduler.optimizer)

        return lr, momentum

    def step_batch(self, runner: "IRunner") -> None:
        Update learning rate and momentum in runner.

After Change



        lr_list = [
            param_group["lr"]
            for param_group in scheduler.optimizer.param_groups
        ]
        momentum_list = get_optimizer_momentum_list(scheduler.optimizer)
        return lr_list, momentum_list
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: Scitator/catalyst
Commit Name: 92ec6f9f8790d0176fbafbf711d5a541b5c09e60
Time: 2020-12-04
Author: mr.and.kul@gmail.com
File Name: catalyst/callbacks/scheduler.py
Class Name: SchedulerCallback
Method Name: _scheduler_step


Project Name: lufficc/SSD
Commit Name: 0d3256cf9041708ca4307f56766b0428699f55f4
Time: 2019-05-21
Author: violin1229@163.com
File Name: ssd/utils/lr_scheduler.py
Class Name: WarmupMultiStepLR
Method Name: get_lr