Shortcuts

Output

class flash.core.data.io.output.Output(running_stage=None)[source]

An Output encapsulates a single transform() method which is used to convert the model output into the desired output format when predicting.

abstract classmethod from_task(task, **kwargs)[source]

Instantiate the output from the given Task.

Return type

Output

static transform(sample)[source]

Convert the given sample into the desired output format.

Parameters

sample (Any) – The output from the OutputTransform.

Return type

Any

Returns

The converted output.