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
:
-
Build using
setup.py
:python3 setup.py bdist_wheel
-
Install the wheel: The wheel is installed in the
dist
directory. Install the wheel by running the following commandpython3 -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
-
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file polygraphy_trtexec-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: polygraphy_trtexec-0.0.8-py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 3
- Uploaded using 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.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ce3a0a53cde91f4da761d214d9962e1d3dd934cfbf4b24abfc57d0e1236e61d |
|
MD5 | 7e3fda74ab04030037b9eb659750e996 |
|
BLAKE2b-256 | 6527d38ca6dc2a4befba781b4176bb71ba973c9a969e8c6d006f7cccc95a33c3 |