Skip to main content

resolve_axis

Function resolve_axis 

Source
pub fn resolve_axis(axis: u8, rank: usize) -> Result<usize, ShapeExprError>
Expand description

Resolve a non-negative axis (or LAST) against rank (§6.20-0003). pub since Increment C slice 1 (T2): the recipe-interior axis_last resolver (fuel_graph::runtime_fused::resolve_rel_attrs) reuses this as the single LAST→rank−1 evaluator instead of growing a second one.