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

When I call Trainer.test it calls both "test" and "fit" stages of setup - should it just be "test" #2715

Closed
jloveric opened this issue Jul 26, 2020 · 3 comments
Assignees
Labels
bug Something isn't working help wanted Open to be worked on

Comments

@jloveric
Copy link

🐛 Bug

When I call Trainer.test it calls both "test" and "fit" stages of "setup" function. Shouldn't it just call test?

To Reproduce

You can actually look through the code to see that this will happen since self.fit() is called. Follow trainer.test() then choose the function self.__test_given_model(model, test_dataloaders) and then self.fit(model) is called. Also, you can just print out "stage" in the setup function and you will see both "fit" and "test" are called when trainer.test(model=model, test_dataloaders=dataloaders) is called. I'm using the "fit" value for training, should I be using something else?

@jloveric jloveric added bug Something isn't working help wanted Open to be worked on labels Jul 26, 2020
@rohitgr7
Copy link
Contributor

Can you check on master? It's fixed #2624.

@Borda
Copy link
Member

Borda commented Jul 31, 2020

@yukw777 mind have look? :]

@rohitgr7
Copy link
Contributor

@Borda it's already fixed on master.

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

No branches or pull requests

3 participants