Skip to main content

register

Function register 

Source
pub fn register<F>(name: impl Into<String>, f: F)
where F: Fn(&[&[f32]]) -> Vec<f32> + Send + Sync + 'static,
Expand description

Register a custom op under name. Idempotent — re-registering replaces. Names are arbitrary strings; convention: dotted namespacing like "my-crate.my-op".