Implement SIMD boundaries in Rust
masterThe project follows a specific organizational pattern for SIMD to keep unsafe code auditable and safe:
kernels::mod: Handles platform detection and fallback logic.kernels::x86: Contains the actual AVX2 intrinsics.kernels::scalar: Provides a readable, cross-platform reference implementation used as a fallback.- Upper Layers:
layersandnetworkmodules interact with the kernels through safe abstractions and do not touch intrinsics directly.
Each AVX2 entry point assumes specific shape preconditions (e.g., channel padding, specific output channel widths).