Skip to main content

dispatch_op

Function dispatch_op 

Source
pub fn dispatch_op(
    op_id: &str,
    input: &[u8],
    output: &mut Vec<u8>,
) -> Result<(), Error>
Expand description

Run a single op against its registered CPU reference.

Category C IO ops and foundation’s structured CPU fallback are rejected before invocation so the reference backend reports unsupported capability instead of executing a non-executable structured fallback.

§Errors

Returns Error::Interp when:

  • The op id is not registered with any dialect.
  • The registered op is a Category C IO op, which has no portable CPU path.
  • The registered op still points at foundation’s structured CPU fallback.