You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add direct channels_last (NHWC) SIMD fast path for Conv2d forward and backward #7
Oxideon supports MemoryFormat::ChannelsLast (Layout::channels_last, Tensor::to_channels_last(), Tensor::is_channels_last()). Currently, the fast CPU conv2d path (conv2d_winograd_3x3_f32 / conv2d_oc_block4_s1d1_f32 / im2col+GEMM in crates/oxideon-core/src/ops.rs) operates on contiguous NCHW tensors.
Adding a direct NHWC SIMD kernel (where C_in is contiguous in memory, enabling inner-loop AVX2/NEON FMA dot products without transposing or materializing im2col buffers) will speed up channels_last CNN workloads on CPU.
Detect self.is_channels_last() && weight.is_channels_last() in Tensor::conv2d and dispatch to a direct NHWC kernel (producing a channels_last output tensor).
Match NCHW forward and backward results within 1e-4 and add a benchmark comparison.
Activity