Skip to main content

Module model

Module model 

Source
Expand description

The model kind and the single typed IR payload.

The two IR families never merge. ModelKind is stored explicitly on the package; ModelPayload is the tagged wrapper around exactly one payload. The payload’s kind() must agree with the package’s model_kind (the package asserts this), but the authoritative kind is the standalone field, so a reader never infers the kind from which payload field is present.

Enums§

ModelKind
Which concrete static-grid IR family the payload is.
ModelPayload
The one IR payload a package carries, tagged by kind in JSON so the payload is self-describing in addition to the top-level model_kind.