Skip to content
Discussion options

You must be logged in to vote

Hi, the return of subcommand is not saved in LightningCLI.
https://github.com/Lightning-AI/lightning/blob/0ca3b5aa1b16667cc2d006c3833f4953b5706e72/src/pytorch_lightning/cli.py#L623-L630

You can instance CLI with run=False or Hack the LightningCLI directly to make sure it return results.

cli = LightningCLI(run=False)
cli.trainer.predict(...)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by cgoliver
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment