Skip to content

Interface: SequentialLayer ​

Defined in: ml/model.ts:138

A layer in a straight-line model; id is derived when omitted.

Extends ​

Properties ​

flops? ​

ts
optional flops?: number;

Defined in: ml/model.ts:26

Multiply-accumulates / FLOPs, if known.

Inherited from ​

ModelNode.flops


group? ​

ts
optional group?: string;

Defined in: ml/model.ts:28

Block or stage the layer belongs to ("layer1", "encoder.3", …).

Inherited from ​

ModelNode.group


id? ​

ts
optional id?: string;

Defined in: ml/model.ts:139


name? ​

ts
optional name?: string;

Defined in: ml/model.ts:18

Display name. Defaults to id.

Inherited from ​

ModelNode.name


params? ​

ts
optional params?: number;

Defined in: ml/model.ts:24

Trainable parameter count.

Inherited from ​

ModelNode.params


shape? ​

ts
optional shape?: number[];

Defined in: ml/model.ts:22

Output tensor shape with the batch dim dropped, e.g. [64, 112, 112].

Inherited from ​

ModelNode.shape


type ​

ts
type: string;

Defined in: ml/model.ts:20

Layer or op class: "Conv2d", "Linear", "ReLU", "Add", …

Inherited from ​

ModelNode.type

MIT licensed. WebGL2 required.