GizStack
View .mdOpen in ChatGPTOpen in Claude

gizai:onnx/encode

a graph to ONNX bytes.

gizlang
import * as Encode from "gizai:onnx/encode";

Functions

encode

gizlang
function encode(m: Model, version: string): bytes throws string

The ONNX file of a model. A model whose estimator ONNX has no operator for (svm, AdaBoost's vote and median) is an error; so are class labels that are not integers.

Effects: fail.

portsOf

gizlang
function portsOf(m: Model): Vec<Vec<Port>> throws string

The inputs and outputs of the ONNX graph of a model.

Effects: fail.