class
OperatorAttributes
PythonPer-operator attributes resolved from the operators attribute rules.
OperatorAttributes()Per-operator attributes resolved from the operators attribute rules.
A key the model does not declare is an error. An operator that takes
attributes of its own declares them on a subclass and sets it as its
ATTRIBUTES. A custom operator that reads keys it does not declare
opts in to free-form attributes with a subclass declared
@dataclass(config=ConfigDict(extra="allow")).
attribute
code_placement
Pythoncode_placement: MemoryType = Field(default=MemoryType.MRAM, description="Memory region for the operator's generated run code: ITCM or MRAM (default)")Memory region for the operator’s generated run code.
ITCM places _run and its shared kernel helpers in ITCM;
MRAM (the default) leaves them in the toolchain’s .text.