Operator Registration¶
- autoform.extend.register_add(aval_type, rule, /)[source]¶
Register tracing dispatch for
+on traced values with this aval.This treats
+as staged syntax while tracing. The rule is called during tracing, not during normal execution, and should usually bind an AutoForm primitive that implements the operation.
- autoform.extend.register_sub(aval_type, rule, /)[source]¶
Register tracing dispatch for
-on traced values with this aval.This treats
-as staged syntax while tracing. The rule should normally bind the primitive that represents subtraction for the extension domain.
- autoform.extend.register_mul(aval_type, rule, /)[source]¶
Register tracing dispatch for
*on traced values with this aval.This treats
*as staged syntax while tracing, instead of evaluating the operation with Python.
- autoform.extend.register_div(aval_type, rule, /)[source]¶
Register tracing dispatch for
/on traced values with this aval.This treats true division as staged syntax while tracing.
- autoform.extend.register_matmul(aval_type, rule, /)[source]¶
Register tracing dispatch for
@on traced values with this aval.This treats matrix multiplication as staged syntax while tracing. It is intended for domains such as arrays, matrices, or tensors where matrix multiplication should stage a primitive into the IR.