Skip to main content

apply_standard_op

Function apply_standard_op 

Source
pub fn apply_standard_op(
    op: StdTensorOp,
    inputs: &[&TracedTensor],
) -> Result<Vec<TracedTensor>>
Expand description

Apply one standard primitive op to traced inputs in their shared context.

ยงErrors

Returns Error::Validation with ValidationError::InvalidArgument when the input count or a traced input does not fit the op, and the same typed build failures as apply when the derived output cannot be finished.