latest (dev)
Copy
Latest development documentation · Updated 2026-10-08
tensorplay.onnx.verify_model
- tensorplay.onnx.verify_model(model: Any, *, expected: Any, input_names: Sequence[str], example_inputs: dict[str, Any], rtol: float = 0.0001, atol: float = 1e-05, raise_on_mismatch: bool = True) VerificationResult[source]
Compare
modelunder onnxruntime against the eager result.- Parameters:
model – the built
ModelProto.expected – what eager TensorPlay produced for
example_inputs— a tensor, or an arbitrarily nested tuple/list of them.input_names – ONNX graph input names, in placeholder order.
example_inputs – placeholder name -> example tensor.
rtol/atol – tolerances forwarded to
numpy.allclose().raise_on_mismatch – raise
VerificationErrorinstead of returning a failed result.
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

