ONNX API
RelationalTransformer.export_onnx and the onnx backend wrap these directly; the
Backends page shows the export and
serving workflow.
When no model is specified, RelationalTransformer(backend="onnx") downloads
RelativeDB/rt-j-onnx/model.onnx automatically.
export_onnx
- relational_transformers.onnx.export_onnx(model, batch, path, *, opset_version=18)
Export target-score inference with dynamic batch and sequence axes.
- Parameters:
batch (RelationalBatch)
path (str | Path)
opset_version (int)
OnnxBackend
- class relational_transformers.onnx.OnnxBackend(path, providers=None, revision=None)
- Parameters:
path (str | Path)
revision (str | None)