onnx_light.tools#
Standalone helpers built on top of onnx_light.
This sub-package collects small utilities that are not part of the
upstream onnx API but are useful when working with ONNX models
through onnx_light.
Currently provided helpers:
onnx_light.tools.to_dot()– render a model or a graph as a Graphviz DOT string.onnx_light.tools.to_mermaid()– render a model or a graph as a Mermaid flowchart.onnx_light.tools.to_svg()– render a model or a graph as a standalone SVG image.onnx_light.tools.compute_value_and_node_tags()– infer semantic value/node tags.onnx_light.tools.write_value_and_node_tags_to_metadata()– tag values and nodes asshape,axes,weightorambiguousin metadata.onnx_light.tools.pretty_onnx()– render any ONNX proto (model, graph, function, node, attribute, value info, tensor) as a compact human-readable string.