Expand description
ONNX — Import/Export for interoperability with other frameworks.
Structs§
- Onnx
Graph - A fully parsed ONNX graph: nodes + initializers + I/O metadata.
- Onnx
Model - An ONNX model with graph, metadata, and opset information.
- Onnx
Node - An ONNX graph node (operation).
- Onnx
Tensor - Represents an ONNX TensorProto (a named tensor with shape and data).
Enums§
- Onnx
Attribute - An ONNX attribute value.
Functions§
- export_
tensors - Export named tensors directly to ONNX format.
- export_
weights - Export a module’s weights as an ONNX model file.
- load_
onnx_ graph - Load a full ONNX graph (nodes + initializers) from a file.
- load_
onnx_ graph_ from_ bytes - Load a full ONNX graph from in-memory bytes.
- load_
onnx_ weights - Load tensor weights from an ONNX model file.
- load_
onnx_ weights_ from_ bytes - Load tensor weights from ONNX bytes (in-memory).
- run_
onnx_ graph - Execute an ONNX graph on the given backend.