Skip to content

Allow returning of test results from Trainer.test #7653

@Rizhiy

Description

@Rizhiy

🚀 Feature

Currently, Trainer.test only returns logged metrics, this is very limiting.

Motivation

I have a lot of different results which are produced by tests, including figures and sample predictions.
At present, I cannot return them from test since it only allows returning of logged values which it seems must be scalars.

As a workaround I have to separately predict outputs, get targets and then match them together, which is bug-prone.

Pitch

Trainer.test should return output of Module.test_epoch_end.

Alternatives

N/A

Additional context

N/A

cc @Borda @tchaton @justusschock @awaelchli @rohitgr7

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions