Skip to content

Function: modelBoxDims()

ts
function modelBoxDims(nodes, opts?): BoxDims[];

Defined in: ml/model.ts:851

Cuboid dimensions for every node, normalized together so the largest layer on each axis hits its max — the classic "CNN funnel" where feature maps shrink while channel depth grows.

Parameters

ParameterType
nodesModelNode[]
optsModelBoxSizing

Returns

BoxDims[]

MIT licensed. WebGL2 required.