gizai:onnx/encode
a graph to ONNX bytes.
import * as Encode from "gizai:onnx/encode";Functions
encode
function encode(m: Model, version: string): bytes throws stringThe 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
function portsOf(m: Model): Vec<Vec<Port>> throws stringThe inputs and outputs of the ONNX graph of a model.
Effects: fail.