Skip to content

Unable to print out Ranger21 Optimizer #118

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

Closed
Interpause opened this issue Mar 8, 2023 · 3 comments
Closed

Unable to print out Ranger21 Optimizer #118

Interpause opened this issue Mar 8, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@Interpause
Copy link

Unable to print out the optimizer:

optimizer = Ranger21(model.parameters(), 1000)
print(optimizer)
    print(optimizer)
TypeError: 'str' object is not callable

I believe it is due to the @property decorator at

. The __str__ dunder is supposed to be a function rather than a property.

@kozistr kozistr self-assigned this Mar 12, 2023
@kozistr kozistr added the bug Something isn't working label Mar 12, 2023
@kozistr
Copy link
Owner

kozistr commented Mar 12, 2023

Hello, Thanks for the report!

you're right __str__ method is supposed to be a function, it's my mistake. I'll fix it right away.

@kozistr
Copy link
Owner

kozistr commented Mar 12, 2023

now you can use v2.5.1 with the fix.

Thank you!

@kozistr kozistr closed this as completed Mar 12, 2023
@Interpause
Copy link
Author

No problem, thanks for maintaining the optimizers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants