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

Trial XXXXX failed: TypeError("step() missing 1 required positional argument: 'closure'") #275

Closed
oliver-lloyd opened this issue Jul 11, 2023 · 2 comments

Comments

@oliver-lloyd
Copy link

Hi,

I am repeatedly getting the titular error message on experiment trials. The only step() function I can find in LibKGE is that of the learning rate scheduler, here:

def step(self, metric=None):

..but evidently that takes no 'closure' argument. Some googling suggests the issue might be to do with torch.optim, particularly the L-BFGS algorithm, but I am inexperienced with PyTorch and struggling to dig deeper.

I would greatly appreciate any guidance on how to fix this issue.

@rgemulla
Copy link
Member

I cannot reproduce this error (numba 0.57.1, numpy 1.24.4, torch 2.0.1). Do you have a stack trace or any other additional information?

@oliver-lloyd
Copy link
Author

I have no traceback unfortunately, but my package versions are earlier (numba 0.50.1, numpy 1.19.5, torch 1.7.1) so I will update and report back if the error reoccurs

@rgemulla rgemulla closed this as completed Oct 9, 2023
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

2 participants