Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type error with lr_scheduler #46

Open
zyfhaha opened this issue Jul 21, 2022 · 1 comment
Open

Type error with lr_scheduler #46

zyfhaha opened this issue Jul 21, 2022 · 1 comment

Comments

@zyfhaha
Copy link

zyfhaha commented Jul 21, 2022

After several epochs running, an error will raise as following:

/hfta/optim/lr_scheduler.py", line 247, in _update_lr
    res = this_lr * multiplier
TypeError: unsupported operand type(s) for *: 'Coefficient' and 'float'

it seems that the type of this_lr is 'Coefficient' and it can not do * with 'float'

@zyfhaha
Copy link
Author

zyfhaha commented Jul 21, 2022

It seems that there is something wrong with 'step size'. if I set '[5]', the error will appear at the end of 5th epoch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant