class documentation

class Model(BaseModelExtraForbid):

View In Hierarchy

Configuration for one model stage in an NN Archive.

Instance Variable heads Optional parser head definitions. If omitted, the archive exposes raw model outputs.
Instance Variable inputs Input stream definitions.
Instance Variable metadata Model-level metadata, including the executable path.
Instance Variable outputs Output stream definitions.
heads: list[HeadType] | None =

Optional parser head definitions. If omitted, the archive exposes raw model outputs.

inputs: list[Input] =

Input stream definitions.

metadata: Metadata =

Model-level metadata, including the executable path.

outputs: list[Output] =

Output stream definitions.