Skip to content

Interface: OnnxAdapterOptions ​

Defined in: ml/model.ts:249

ONNX adapter options: tensor shapes are supplied separately (shape inference is optional in ONNX).

Extends ​

Properties ​

name? ​

ts
optional name?: string;

Defined in: ml/model.ts:205

Inherited from ​

AdapterOptions.name


paramCounts? ​

ts
optional paramCounts?: Record<string, number>;

Defined in: ml/model.ts:253

Tensor name → element count, to attribute weights to their consuming op.


shapes? ​

ts
optional shapes?: Record<string, number[]>;

Defined in: ml/model.ts:251

Tensor name → shape (batch dim already dropped), for node output shapes.


skipOps? ​

ts
optional skipOps?: string[];

Defined in: ml/model.ts:207

fx ops to drop before building the graph. Default ["get_attr"].

Inherited from ​

AdapterOptions.skipOps

MIT licensed. WebGL2 required.