ContractPortSpec Struct
Per-port contract: the shape/type/segment requirements for one input or output. More...
Declaration
Included Headers
Public Member Attributes Index
| std::string | port_id |
|
Stable port identifier. More... | |
| std::string | media_type |
|
Constraint on media type (may be empty). More... | |
| std::string | format |
|
Constraint on format (may be empty). More... | |
| std::string | dtype |
|
Constraint on dtype (may be empty). More... | |
| std::string | layout |
|
Constraint on layout (may be empty). More... | |
| std::vector< std::string > | required_segment_names |
| std::vector< std::string > | required_preprocess_meta_fields |
|
Preprocess-meta fields that must be present. More... | |
| bool | require_quant = false |
|
If true, port requires quantization metadata. More... | |
Description
Per-port contract: the shape/type/segment requirements for one input or output.
A Node may declare multiple ports; each is identified by port_id. Empty string fields mean "unconstrained at this stage" — the Builder fills them in during contract resolution.
Definition at line 58 of file NodeContractDefinition.h.
Public Member Attributes
dtype
|
Constraint on dtype (may be empty).
Definition at line 62 of file NodeContractDefinition.h.
format
|
Constraint on format (may be empty).
Definition at line 61 of file NodeContractDefinition.h.
layout
|
Constraint on layout (may be empty).
Definition at line 63 of file NodeContractDefinition.h.
media_type
|
Constraint on media type (may be empty).
Definition at line 60 of file NodeContractDefinition.h.
port_id
|
Stable port identifier.
Definition at line 59 of file NodeContractDefinition.h.
require_quant
|
If true, port requires quantization metadata.
Definition at line 67 of file NodeContractDefinition.h.
required_preprocess_meta_fields
|
Preprocess-meta fields that must be present.
Definition at line 66 of file NodeContractDefinition.h.
required_segment_names
|
Segment names that must be present.
Definition at line 64 of file NodeContractDefinition.h.
The documentation for this struct was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.