numr 0.12.0

High-performance numerical computing with multi-backend GPU acceleration (CPU/CUDA/WebGPU)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Fused activation-multiplication with gradient support
//!
//! Each function computes `activation(a) * b` in a single memory pass.
//! Backward computes:
//! - d_a = grad_output * b * activation'(a)
//! - d_b = grad_output * activation(a)

mod backward;
mod derivative;
mod forward;
mod fused_kind;

pub use forward::{var_gelu_erf_mul, var_gelu_mul, var_relu_mul, var_sigmoid_mul, var_silu_mul};