Skip to main content

Module json

Module json 

Source
Expand description

Canonical descriptor-driven ONNX protobuf JSON interchange.

The generated descriptor for the crate’s vendored onnx.proto3 is the only field table. This keeps JSON and protobuf TextFormat automatically complete and consistent for every message, field, oneof, and enum in the bound spec.

Functions§

from_json
Parse a canonical ONNX protobuf JSON document.
to_json
Serialize a model using protobuf’s canonical JSON mapping.