Skip to content

Latest commit

 

History

History
 
 

01_comparing_frameworks

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Comparing Frameworks

Introduction

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.

Running The Example

  1. Install prerequisites

    • Ensure that TensorRT is installed
    • Install other dependencies with python3 -m pip install -r requirements.txt
  2. Run the example

    python3 example.py
  3. [Optional] Inspect the inference outputs from the example:

    polygraphy inspect data inference_results.json