docsapi referencedarkforest-core-nn-conv2d
API Referencecrate: darkforest-coresince v0.1.0-alpha

Conv2d

2D spatial convolution operator for vision backbones.

Conv2d

darkforest-core module: nn since v0.1.0-alpha

Signature

rust
pub struct Conv2d { in_channels: usize, out_channels: usize, kernel_size: (usize, usize), stride: usize }

Overview

2D spatial convolution operator for vision backbones.

Invariants & Design Principles

  • Invariant: Adheres strictly to Dark Forest 64-byte alignment and strided memory invariants.
  • Invariant: Verified via unit tests, Miri memory model, and PyTorch cross-checks.

Usage Example

rust
// Example calling Conv2d
let _res = darkforest_core::nn::Conv2d();

Related Components