hyperiax.SweepFn¶
- class hyperiax.SweepFn(direction, fn, reads, reads_children, reads_parent, writes, writes_children=())[source]¶
Bases:
objectA direction-tagged, pure
Tree -> Treetransform.Hashable so the dispatcher can pin it as JIT static. Equality is value-based on
(direction, fn identity, read/write spec tuples).writes_children(up sweeps only) declares fields whose per-parent output has shape(k, *trailing)and gets scattered to the children’s slots rather than the parent’s slot — useful for caching per-edge quantities computed during the up-sweep (e.g. the per-stepF_t/H_tfrom a per-edge ODE filter).- Parameters:
- __init__(direction, fn, reads, reads_children, reads_parent, writes, writes_children=())¶
Methods
__init__(direction, fn, reads, ...[, ...])Attributes