{#- Shared Jinja2 macros for DescriptorGenerator templates. -#} {#- Derives the constant name for a vector data field's test value. Uses test_constant_name if set, otherwise derives from the field name using the operation's tensor_const_prefix for consistent naming. Usage: {{ vector_const_name(df, op) }} -#} {%- macro vector_const_name(df, op) -%} {%- if df.test_constant_name -%} {{ df.test_constant_name }} {%- else -%} {{ op.tensor_const_prefix }}{{ df.name | upper }} {%- endif -%} {%- endmacro -%}