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

BatchNorm1d

1D batch normalization layer.

BatchNorm1d

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

Signature

rust
pub struct BatchNorm1d { running_mean: Tensor, running_var: Tensor, num_features: usize }

Overview

1D batch normalization layer.

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 BatchNorm1d
let _res = darkforest_core::nn::BatchNorm1d();

Related Components