Skip to main content

eager_transpose_fragment

Function eager_transpose_fragment 

Source
pub fn eager_transpose_fragment<Op: PrimitiveOp>(
    linear: &LinearFragment<Op>,
    emitter: &mut impl OpEmitter<Op>,
    cotangent_seeds: &[Option<LocalValId>],
    ctx: &mut Op::ADContext,
) -> Vec<Option<LocalValId>>
where Op::InputKey: ADKey,
Expand description

Execute the transpose of a linear fragment using an eager emitter.

This mirrors crate::transpose but leaves execution strategy to the caller-provided [computegraph::OpEmitter].