aitune.torch.libs.onnx.runtime
Shared ONNX Runtime execution with Torch inputs.
Module Contents
Functions
Data
API
Bind contiguous CPU or CUDA tensors directly by their memory pointers.
Tell ORT to allocate all outputs on the requested device.
ORT owns the output buffers; shapes are resolved at inference time.
Tensors are retrieved after inference via _collect_outputs.
Collect CPU outputs as arrays or copy CUDA outputs directly to Torch.
Match positional and named inputs to the original ONNX graph names.
Bind tensors directly and return outputs on the requested device.