Skip to main content

ContractPortSpec Struct

Per-port contract: the shape/type/segment requirements for one input or output. More...

Declaration

struct simaai::neat::ContractPortSpec { ... }

Included Headers

Public Member Attributes Index

std::stringport_id

Stable port identifier. More...

std::stringmedia_type

Constraint on media type (may be empty). More...

std::stringformat

Constraint on format (may be empty). More...

std::stringdtype

Constraint on dtype (may be empty). More...

std::stringlayout

Constraint on layout (may be empty). More...

std::vector< std::string >required_segment_names

Segment names that must be present. More...

std::vector< std::string >required_preprocess_meta_fields

Preprocess-meta fields that must be present. More...

boolrequire_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

std::string simaai::neat::ContractPortSpec::dtype

Constraint on dtype (may be empty).

Definition at line 62 of file NodeContractDefinition.h.

62 std::string dtype;

format

std::string simaai::neat::ContractPortSpec::format

Constraint on format (may be empty).

Definition at line 61 of file NodeContractDefinition.h.

61 std::string format;

layout

std::string simaai::neat::ContractPortSpec::layout

Constraint on layout (may be empty).

Definition at line 63 of file NodeContractDefinition.h.

63 std::string layout;

media_type

std::string simaai::neat::ContractPortSpec::media_type

Constraint on media type (may be empty).

Definition at line 60 of file NodeContractDefinition.h.

60 std::string media_type;

port_id

std::string simaai::neat::ContractPortSpec::port_id

Stable port identifier.

Definition at line 59 of file NodeContractDefinition.h.

59 std::string port_id;

require_quant

bool simaai::neat::ContractPortSpec::require_quant = false

If true, port requires quantization metadata.

Definition at line 67 of file NodeContractDefinition.h.

67 bool require_quant = false;

required_preprocess_meta_fields

std::vector<std::string> simaai::neat::ContractPortSpec::required_preprocess_meta_fields

Preprocess-meta fields that must be present.

Definition at line 66 of file NodeContractDefinition.h.

required_segment_names

std::vector<std::string> simaai::neat::ContractPortSpec::required_segment_names

Segment names that must be present.

Definition at line 64 of file NodeContractDefinition.h.

64 std::vector<std::string> required_segment_names;

The documentation for this struct was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.