Skip to main content

Extending polygraphy run to support trtexec

Introduction

polygraphy run allows you to run inference with multiple backends, including TensorRT and ONNX-Runtime, and compare outputs. This extension adds support to run inference with trtexec.

Installation

Follow the steps below to install the extension module. After installation, you should see the trtexec options in the help output of polygraphy run:

  1. Build using setup.py:

    python3 setup.py bdist_wheel
    
  2. Install the wheel: The wheel is installed in the dist directory. Install the wheel by running the following command

    python3 -m pip install dist/polygraphy_trtexec-*.whl \
        --extra-index-url https://pypi.ngc.nvidia.com
    

    NOTE: You may have to update the above command to install the appropriate version of the wheel

  3. After the installation, you can run it on the trtexec backend by using the --trtexec flag as follows:

    polygraphy run sample.onnx --trtexec
    

Metadata

Release files for polygraphy-trtexec 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for polygraphy-trtexec 0.0.9
File Interpreter ABI Platform
polygraphy_trtexec-0.0.9-py3-none-any.whl Python 3 none any Details

Release files / polygraphy_trtexec-0.0.9-py3-none-any.whl

Download URL polygraphy_trtexec-0.0.9-py3-none-any.whl
Size 17.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
823b03c6582230cb77afd4550b69d2ef5d078cdd783cea58e66f184b84b7b02a
BLAKE2b-256 checksum
How to use checksums
8ea16818433f497b43eb890131c5f4fdb41ee808809a91510fbce5812156563a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.3 readme-renderer/37.1 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.1 importlib-metadata/4.12.0 keyring/23.9.1 rfc3986/2.0.0 colorama/0.4.5 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.0.9 This release

1 release file

0.0.8

1 release file

0.0.7

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page