One of the core features of Polygraphy is comparison of model outputs across multiple different backends. This makes it possible to check the accuracy of one backend with respect to another.
In this example, we'll look at how you can use the Polygraphy API to run inference with synthetic input data using ONNX Runtime and TensorRT, and then compare the results.
-
Install prerequisites
- Ensure that TensorRT is installed
- Install other dependencies with
python3 -m pip install -r requirements.txt
-
Run the example
python3 example.py
-
[Optional] Inspect the inference outputs from the example:
polygraphy inspect data inference_results.json