config.get
← config dialect
Read a compile/link-time configuration value. The symbol reference is a generated symbol-ref attr so dependency analysis and bytecode index metadata can see config sensitivity through the normal symbol path.
Operation contract
| Property |
Value |
| Semantic phase |
— |
| Traits |
Pure |
Signature
| Kind |
Name |
Type |
Cardinality |
Description |
| Result |
result |
any |
required |
— |
| Attribute |
config |
symbol (config) |
required |
— |
Examples
%hidden = config.get @model36.model.hidden_size : index
%enabled = config.get @model36.features.enable_mtp : i1
%dense_encoding = config.get @model36.quant.dense_encoding : encoding<schema>