aitune.torch.module.onnx_module
aitune.torch.module.onnx_module
A runnable ONNX graph for AITune recording and tuning.
Module Contents
Classes
Functions
API
Bases: Module
Run an ONNX file with positional or named tensor inputs and named outputs.
Wrap with aitune.torch.Module to record calls and select a backend with
MaxThroughputStrategy. Inputs must match the ONNX graph’s names and dtypes.
Read metadata declared by the source ONNX graph without running inference.
Create a session lazily without switching an existing session’s device.
Return execution providers for the selected device.
Release the runtime session.
Execute the graph using the same runtime as ONNXRuntimeBackend.
Switch execution providers, using CPU for meta since ORT has no meta provider.
Attach original ONNX names to recorded tensors without altering their observed shapes.
Supply a source module when loading a self-contained ONNX AOT checkpoint.