The .drft container · const
NNET_MAX_WIDTH
The widest layer a network may declare.
Explained in The .drft container.
const NNET_MAX_WIDTH = 4096import { NNET_MAX_WIDTH } from '@driftengine/drft';In depth
A bound on the arithmetic, not on ambition. A width is a u32 read out of a file and two of
them multiply into a weight count, so a corrupt pair asks for an allocation the size of the
address space. 4,096 is far past anything the device evaluates — its widest is sixteen — and
keeps every product of two widths comfortably inside the integers a double holds exactly.