Skip to main content

Module population

Module population 

Source
Expand description

Population containers.

Population<B, K> is a thin wrapper around a device tensor plus the shape metadata strategies need. For real-valued kinds it holds a Tensor<B, 2>; binary and integer kinds use Tensor<B, 2, Int>.

The wrapper exists so operators and strategies have a single shape contract to validate against (they check pop_size and genome_dim rather than repeatedly interrogating tensor.shape().dims).

Structs§

Population
Population stored on a Burn backend device.