onnx_light.onnx.printer#
- onnx_light.onnx.printer.to_text(proto: ModelProto | FunctionProto | GraphProto) str#
Converts a protobuf object to the ONNX textual representation.
- Parameters:
proto – A ModelProto, FunctionProto, or GraphProto instance.
- Returns:
The ONNX textual representation of the proto.
- Raises:
TypeError – If proto is not a supported type.