Skip to content

Separate Trainer for train() and test()? #12906

Discussion options

You must be logged in to vote

yes, if you care about the accuracy of the test metrics and don't want to include extra samples, this is the only way. Not just a separate trainer, if using DDP, you should create a separate script all together else the whole script, along with the trainer.test call will be launched on each device during trainer.fit call.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@davzaman
Comment options

@rohitgr7
Comment options

Answer selected by davzaman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment