Skip to content

"Error: 'MyDataModule' object is not iterable" when calling trainer.predict(model, data) #7425

Discussion options

You must be logged in to vote

Sorry! We did not add support for trainer.predict(model, datamodule). We'll do it asap!

You need to do trainer.predict(model, datamodule=datamodule)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dianemarquette
Comment options

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