Skip to main content

Polygraphy Trtexec: Extension to run on trtexec backend

Project description

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
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

polygraphy_trtexec-0.0.7-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file polygraphy_trtexec-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: polygraphy_trtexec-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.11 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.9.13

File hashes

Hashes for polygraphy_trtexec-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 5110f504f02800d91ca185938e501d94d4f4dcfe6e8632f2360a8b1804fc651a
MD5 b7be1653dee1a4aa176e065de31d75d7
BLAKE2b-256 95ea608d232500f023d0e79529e4910cea0d698a60a745be9ca681b726617046

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page