TensorRT Installation Guide
TensorRT Installation Guide
Installation Guide
TABLE OF CONTENTS
www.nvidia.com
Installing TensorRT SWE-SWDOCTRT-001-INST_vTensorRT 6.0.1 | ii
Chapter 1.
OVERVIEW
The core of NVIDIA TensorRT is a C++ library that facilitates high performance inference
on NVIDIA graphics processing units (GPUs). TensorRT takes a trained network, which
consists of a network definition and a set of trained parameters, and produces a highly
optimized runtime engine which performs inference for that network.
TensorRT provides API's via C++ and Python that help to express deep learning models
via the Network Definition API or load a pre-defined model via the parsers that allows
TensorRT to optimize and run them on an NVIDIA GPU. TensorRT applies graph
optimizations, layer fusion, among other optimizations, while also finding the fastest
implementation of that model leveraging a diverse collection of highly optimized
kernels. TensorRT also supplies a runtime that you can use to execute this network on all
of NVIDIA’s GPU’s from the Kepler generation onwards.
TensorRT also includes optional high speed mixed precision capabilities introduced in
the Tegra X1, and extended with the Pascal, Volta, and Turing architectures.
www.nvidia.com
Installing TensorRT SWE-SWDOCTRT-001-INST_vTensorRT 6.0.1 | 1
Chapter 2.
GETTING STARTED
Ensure you are familiar with the following installation requirements and notes.
‣ The Windows zip package for TensorRT does not provide Python support. Python
may be supported in the future.
‣ If you are using the TensorRT Python API and PyCUDA isn’t already installed on
your system, see Installing PyCUDA. If you encounter any issues with PyCUDA
usage, you may need to recompile it yourself. For more information, see Installing
PyCUDA on Linux.
‣ Ensure you are familiar with the Release Notes. The current version of the release
notes can be found online at TensorRT Release Notes.
‣ Verify that you have the CUDA Toolkit installed, versions 9.0, 10.0 and 10.1 are
supported.
‣ The TensorFlow to TensorRT model export requires TensorFlow 1.14.0.
‣ The PyTorch examples have been tested with PyTorch 1.1.0, but may work with
older versions.
‣ If the target system has both TensorRT and one or more training frameworks
installed on it, the simplest strategy is to use the same version of cuDNN for the
training frameworks as the one that TensorRT ships with. If this is not possible,
or for some reason strongly undesirable, be careful to properly manage the side-
by-side installation of cuDNN on the single system. In some cases, depending on
the training framework being used, this may not be possible without patching the
training framework sources.
‣ The libnvcaffe_parser.so library functionality from previous versions is
included in libnvparsers.so since TensorRT 5.0. The installed symbolic link
for libnvcaffe_parser.so is updated to point to the new libnvparsers.so
library. The static library libnvcaffe_parser.a is also symbolically linked to
libnvparsers_static.a.
‣ The installation instructions below assume you want the full TensorRT; both the C++
and TensorRT Python APIs. In some environments and use cases, you may not want
www.nvidia.com
Installing TensorRT SWE-SWDOCTRT-001-INST_vTensorRT 6.0.1 | 2
Getting Started
to install the Python functionality. In which case, simply don’t install the Debian or
RPM packages labeled Python or the whl files. None of the C++ API functionality
depends on Python. You would need to install the UFF whl file if you want to export
UFF files from TensorFlow models.
www.nvidia.com
Installing TensorRT SWE-SWDOCTRT-001-INST_vTensorRT 6.0.1 | 3
Chapter 3.
DOWNLOADING TENSORRT
Ensure you are a member of the NVIDIA Developer Program. If not, follow the prompts
to gain access.
1. Go to: https://developer.nvidia.com/tensorrt.
2. Click Download Now.
3. Select the version of TensorRT that you are interested in.
4. Select the check-box to agree to the license terms.
5. Click the package you want to install. Your download begins.
www.nvidia.com
Installing TensorRT SWE-SWDOCTRT-001-INST_vTensorRT 6.0.1 | 4
Chapter 4.
INSTALLING TENSORRT
You can choose between the following installation options when installing TensorRT;
Debian or RPM packages, a tar file, or a zip file.
The Debian and RPM installations automatically install any dependencies, however, it:
Previously
Released Version
Product or Component Version Current Version Description
www.nvidia.com
Installing TensorRT SWE-SWDOCTRT-001-INST_vTensorRT 6.0.1 | 5
Installing TensorRT
Previously
Released Version
Product or Component Version Current Version Description
+0.1 when
capabilities have
been improved.
nvinfer libraries, headers, samples, 5.1.5 6.0.1 +1.0 when the API
and documentation. or ABI changes in
a non-compatible
way.
1
These components are not included in the zip file installation for Windows.
www.nvidia.com
Installing TensorRT SWE-SWDOCTRT-001-INST_vTensorRT 6.0.1 | 6
Installing TensorRT
Previously
Released Version
Product or Component Version Current Version Description
Debian and RPM
packages
4.1. Debian Installation
This section contains instructions for a developer installation and an app server
installation.
This installation method is for new users or users who want the complete installation,
including Python, samples and documentation. For advanced users who are already
familiar with TensorRT and want to get their application running quickly or to setup
automation, follow the network repo installation instructions (see Using The NVIDIA
Machine Learning Network Repo For Debian Installation).
Developer Installation: The following instructions sets up a full TensorRT development
environment with samples, documentation and both the C++ and Python API.
Attention If only the C++ development environment is desired, you can modify the
following instructions and simply not install the Python packages.
1. Download the TensorRT local repo file that matches the Ubuntu version and CPU
architecture that you are using.
2. Install TensorRT from the Debian local repo package.
$ sudo dpkg -i
nv-tensorrt-repo-ubuntu1x04-cudax.x-trt6.x.x.x-ga-yyyymmdd_1-1_amd64.deb
$ sudo apt-key add /var/nv-tensorrt-repo-cudax.x-trt6.x.x.x-ga-
yyyymmdd/7fa2af80.pub
www.nvidia.com
Installing TensorRT SWE-SWDOCTRT-001-INST_vTensorRT 6.0.1 | 7
Installing TensorRT
The graphsurgeon-tf package will also be installed with the above command.
3. Verify the installation.
App Server Installation: When setting up servers which will host TensorRT powered
applications, you can simply install any of the following:
‣ the libnvinfer6 package (C++), plus any additional library packages you require,
or
‣ the python-libnvinfer package (Python 2.7), or
‣ the python3-libnvinfer package (Python 3.x).
Issue the following commands if you want to run an application that was built with
TensorRT using the Debian package, for example:
www.nvidia.com
Installing TensorRT SWE-SWDOCTRT-001-INST_vTensorRT 6.0.1 | 8
Installing TensorRT
$ sudo dpkg -i
nv-tensorrt-repo-ubuntu1x04-cudax.x-trt6.x.x.x-ga-yyyymmdd_1-1_amd64.deb
$ sudo apt-key add /var/nv-tensorrt-repo-cudax.x-trt6.x.x.x-ga-
yyyymmdd/7fa2af80.pub
It’s suggested that you setup the NVIDIA CUDA network repository first before setting
up the NVIDIA Machine Learning network repository to satisfy package dependencies.
We provide some example commands below to accomplish this task. For more
information, see the NVIDIA CUDA Installation Guide for Linux.
Where:
‣ OS version: ubuntu1x04 is 1404, 1604 or 1804
‣ CUDA version: x.y.z is 9.0.176, 10.0.130 or 10.1.163
2. Install the NVIDIA Machine Learning network repository installation package.
Choose the wget command below that matches the Ubuntu version you are using.
$ wget https://developer.download.nvidia.com/compute/machine-learning/repos/
ubuntu1404/x86_64/nvidia-machine-learning-repo-ubuntu1404_4.0-2_amd64.deb
$ wget https://developer.download.nvidia.com/compute/machine-learning/repos/
ubuntu1604/x86_64/nvidia-machine-learning-repo-ubuntu1604_1.0.0-1_amd64.deb
$ wget https://developer.download.nvidia.com/compute/machine-learning/repos/
ubuntu1804/x86_64/nvidia-machine-learning-repo-ubuntu1804_1.0.0-1_amd64.deb
www.nvidia.com
Installing TensorRT SWE-SWDOCTRT-001-INST_vTensorRT 6.0.1 | 9
Installing TensorRT
If you want to upgrade to the latest version of TensorRT or the latest version
of CUDA, then you can unhold the libnvinfer6 package using the following
command.
$ sudo apt-mark unhold libnvinfer6 libnvinfer-dev
You may need to repeat these steps for libcudnn7 to prevent cuDNN from being
updated to the latest CUDA version. Refer to the TensorRT Release Notes for the
specific version of cuDNN that was tested with your version of TensorRT. Example
commands for downgrading and holding the cuDNN version can be found in
Upgrading From TensorRT 5.x.x To TensorRT 6.x.x. See the cuDNN Installation
Guide for additional information.
If both the NVIDIA Machine Learning network repository and a TensorRT local
repository are enabled at the same time you may observe package conflicts with
either TensorRT or cuDNN. You will need to configure APT so that it prefers local
packages over network packages. You can do this by creating a new file at /etc/
apt/preferences.d/local-repo with the following lines:
Package: *
Pin: origin ""
Pin-Priority: 1001
This preference change will affect more than just TensorRT in the unlikely event
that you have other repositories which are also not downloaded over HTTP(S). To
revert APT to its original behavior simply remove the newly created file.
4.2. RPM Installation
This section contains instructions for installing TensorRT from an RPM package.
This installation method is for new users or users who want the complete installation,
including Python, samples and documentation. For advanced users who are already
familiar with TensorRT and want to get their application running quickly or to setup
www.nvidia.com
Installing TensorRT SWE-SWDOCTRT-001-INST_vTensorRT 6.0.1 | 10
Installing TensorRT
automation, follow the network repo installation instructions (see Using The NVIDIA
Machine Learning Network Repo For RPM Installation).
1. Download the TensorRT local repo file that matches the RHEL/CentOS version and
CPU architecture you are using.
2. Install TensorRT from the RPM local repo package.
If using Python 3:
www.nvidia.com
Installing TensorRT SWE-SWDOCTRT-001-INST_vTensorRT 6.0.1 | 11
Installing TensorRT
and for the UFF converter (only required if you plan to use TensorRT with
TensorFlow):
$ sudo yum install uff-converter-tf
3. Verify the installation.
a) Run:
$ rpm -qa | grep tensorrt
www.nvidia.com
Installing TensorRT SWE-SWDOCTRT-001-INST_vTensorRT 6.0.1 | 12
Installing TensorRT
When only the C++ libraries and headers are required, you can install TensorRT from the
NVIDIA Machine Learning network repository.
This installation method is for advanced users who are already familiar with TensorRT
and want to get their application running quickly or to setup automation. New
users or users who want the complete installation, including Python, samples and
documentation, should follow the local repo installation instructions (see RPM
Installation).
It’s suggested that you setup the NVIDIA CUDA network repository first before setting
up the NVIDIA Machine Learning network repository to satisfy package dependencies.
We provide some example commands below to accomplish this task. For more
information, see the NVIDIA CUDA Installation Guide for Linux.
Where:
‣ CUDA version: x.y.z is 9.0.176, 10.0.130 or 10.1.163
2. Install the NVIDIA Machine Learning network repository installation package.
$ wget https://developer.download.nvidia.com/compute/machine-learning/repos/
rhel7/x86_64/nvidia-machine-learning-repo-rhel7-1.0.0-1.x86_64.rpm
If you want to upgrade to the latest version of TensorRT or the latest version
of CUDA, then you can unhold the libnvinfer6 package using the following
command.
$ sudo yum versionlock delete libnvinfer6 libnvinfer6-devel
www.nvidia.com
Installing TensorRT SWE-SWDOCTRT-001-INST_vTensorRT 6.0.1 | 13
Installing TensorRT
You may need to repeat these steps for libcudnn7 to prevent cuDNN from being
updated to the latest CUDA version. Refer to the TensorRT Release Notes for the
specific version of cuDNN that was tested with your version of TensorRT. Example
commands for downgrading and holding the cuDNN version can be found in
Upgrading From TensorRT 5.x.x To TensorRT 6.x.x. See the cuDNN Installation
Guide for additional information.
Before issuing the following commands, you'll need to replace 6.x.x.x with your
specific TensorRT version. The following commands are examples.
Where:
‣ 6.x.x.x is your TensorRT version
‣ <os> is:
‣ Ubuntu-14.04
‣ Ubuntu-16.04
‣ Ubuntu-18.04
‣ CentOS-7.6
‣ <arch> is x86_64 or ppc64le
‣ cuda-x.x is CUDA version 9.0, 10.0, or 10.1
‣ cudnn7.x is cuDNN version 7.6
This directory will have sub-directories like lib, include, data, etc…
$ ls TensorRT-6.x.x.x
bin data doc graphsurgeon include lib python samples targets
TensorRT-Release-Notes.pdf uff
5. Add the absolute path to the TensorRT lib directory to the environment variable
LD_LIBRARY_PATH:
$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<eg:TensorRT-6.x.x.x/lib>
6. Install the Python TensorRT wheel file.
www.nvidia.com
Installing TensorRT SWE-SWDOCTRT-001-INST_vTensorRT 6.0.1 | 14
Installing TensorRT
$ cd TensorRT-6.x.x.x/python
In either case:
$ which convert-to-uff
/usr/local/bin/convert-to-uff
8. Install the Python graphsurgeon wheel file.
$ cd TensorRT-6.x.x.x/graphsurgeon
www.nvidia.com
Installing TensorRT SWE-SWDOCTRT-001-INST_vTensorRT 6.0.1 | 15
Installing TensorRT
‣ CUDA Toolkit (CUDA versions 9.0, 10.0, and 10.1 update 2 are supported)
‣ cuDNN (cuDNN version 7.6.3 is supported)
This section contains instructions for installing TensorRT from a zip package on
Windows 10.
1. Download the TensorRT zip file that matches the Windows version you are using.
2. Choose where you want to install TensorRT. The zip file will install everything into a
subdirectory called TensorRT-6.x.x.x. This new sub directory will be referred to
as <installpath> in the steps below.
3. Unzip the TensorRT-6.x.x.x.Windows10.x86_64.cuda-x.x.cudnnx.x.zip
file to the location that you chose. Replace:
a) 6.x.x.x with the TensorRT version
b) cuda-x.x with the CUDA version, and
c) cudnnx.x with the cuDNN version for your particular download.
4. Add the TensorRT library files to your system PATH. There are two ways to
accomplish this task:
a) Leave the DLL files where they were unzipped and add <installpath>/lib to
your system PATH. You can add a new path to your system PATH using the steps
below.
Press the Windows key and search for environment variables which should
1.
present you with the option Edit the system environment variables and click
it.
2. Click Environment Variables… at the bottom of the window.
3. Under System variables, select Path and click Edit….
4. Click either New or Browse to add a new item which contains
<installpath>/lib.
5. Continue to click OK until all the newly opened windows are closed.
6. If your cuDNN libraries were not copied to the CUDA installation directory
and instead left where they were unzipped, then repeat the above steps for
the cuDNN bin directory.
b) Copy the DLL files from <installpath>/lib to your CUDA installation
directory, for example C:\Program Files\NVIDIA GPU Computing Toolkit
\CUDA\vX.Y\bin, where vX.Y is your CUDA version. The CUDA installer
should have already added the CUDA path to your system PATH.
5. To verify that your installation is working you should open a Visual Studio Solution
file from one of the samples, such as sampleMNIST, and confirm that you are able to
build and run the sample.
If you want to use TensorRT in your own project, ensure that the following is
present in your Visual Studio Solution project properties:
a) <installpath>/lib has been added to your PATH variable and is present under
VC++ Directories > Executable Directories.
b) <installpath>/include is present under C/C++ > General >
AdditionalDirectories.
www.nvidia.com
Installing TensorRT SWE-SWDOCTRT-001-INST_vTensorRT 6.0.1 | 16
Installing TensorRT
c) nvinfer.lib and any other LIB files that your project requires is present under
Linker > Input > Additional Dependencies.
In order to build the included samples, you should have Visual Studio 2017
(https://visualstudio.microsoft.com/downloads/) installed. The community
edition is sufficient to build the TensorRT samples.
6. Install the uff and graphsurgeon wheel packages. You must prepare the Python
environment before installing uff and graphsurgeon.
www.nvidia.com
Installing TensorRT SWE-SWDOCTRT-001-INST_vTensorRT 6.0.1 | 17
Chapter 5.
UPGRADING TENSORRT
Upgrading TensorRT to the latest version is only supported when the currently installed
TensorRT version is equal to or newer than the last two public releases. For example,
TensorRT 6.0.x supports upgrading from TensorRT 5.0.x and TensorRT 5.1.x. If you want
to upgrade from an unsupported version, then you should upgrade incrementally until
you reach the latest version of TensorRT.
www.nvidia.com
Installing TensorRT SWE-SWDOCTRT-001-INST_vTensorRT 6.0.1 | 18
Upgrading TensorRT
‣ If you are using the uff-converter and/or graphsurgeon, then you should
also upgrade those Debian packages to the latest versions.
‣ If you are upgrading using the tar file installation method, then install TensorRT
into a new location. Tar file installations can support multiple use cases including
having a full installation of TensorRT 5.x.x with headers and documentation side-
by-side with a full installation of TensorRT 6.x.x. If the intention is to have the
new version of TensorRT replace the old version, then the old version should be
removed once the new version is verified.
‣ If installing a tar file on a system where the previously installed version was from
a Debian package, note that the tar file installation will not remove the previously
installed packages. Unless a side-by-side installation is desired, it would be
best to remove the previously installed libnvinfer5,libnvinfer-dev, and
libnvinfer-samples packages to avoid confusion.
‣ If you are upgrading using the zip file installation method, then install TensorRT
into a new location. Zip file installations can support multiple use cases including
having a full installation of TensorRT 5.x.x with headers and documentation side-
by-side with a full installation of TensorRT 6.x.x. If the intention is to have the
new version of TensorRT replace the old version, then the old version should be
removed once the new version is verified.
www.nvidia.com
Installing TensorRT SWE-SWDOCTRT-001-INST_vTensorRT 6.0.1 | 19
Upgrading TensorRT
‣ After unzipping the new version of TensorRT you will need to either update the
PATH environment variable to point to the new install location or copy the DLL
files to the location where you previously installed the TensorRT libraries. Refer
to Zip File Installation for more information about setting the PATH environment
variable.
www.nvidia.com
Installing TensorRT SWE-SWDOCTRT-001-INST_vTensorRT 6.0.1 | 20
Upgrading TensorRT
www.nvidia.com
Installing TensorRT SWE-SWDOCTRT-001-INST_vTensorRT 6.0.1 | 21
Chapter 6.
UNINSTALLING TENSORRT
To uninstall TensorRT using the untarred file, simply delete the tar files and reset
LD_LIBRARY_PATH to its original value.
To uninstall TensorRT using the zip file, simply delete the unzipped files and remove the
newly added path from the PATH environment variable.
To uninstall TensorRT using the Debian or RPM packages, follow these steps:
1. Uninstall libnvinfer6 which was installed using the Debian or RPM packages.
$ sudo apt-get purge "libnvinfer*"
Or
$ sudo yum erase "libnvinfer*"
2. Uninstall uff-converter-tf and graphsurgeon-tf, which were also installed
using the Debian or RPM packages.
$ sudo apt-get purge "graphsurgeon-tf"
Or
$ sudo yum erase "graphsurgeon-tf"
Or
$ sudo yum erase "uff-converter-tf"
Or
www.nvidia.com
Installing TensorRT SWE-SWDOCTRT-001-INST_vTensorRT 6.0.1 | 22
Uninstalling TensorRT
www.nvidia.com
Installing TensorRT SWE-SWDOCTRT-001-INST_vTensorRT 6.0.1 | 23
Chapter 7.
INSTALLING PYCUDA
Attention If you have to update your CUDA version on your system, do not install
PyCUDA at this time. Perform the steps in Updating CUDA first, then install PyCUDA.
PyCUDA is used within Python wrappers to access NVIDIA’s CUDA APIs. Some of the
key features of PyCUDA include:
If you encounter any issues with PyCUDA usage after installing PyCUDA with the
above command, you may need to recompile it yourself. For more information, see
Installing PyCUDA on Linux.
7.1. Updating CUDA
Existing installations of PyCUDA will not automatically work with a newly installed
CUDA Toolkit. That is because PyCUDA will only work with a CUDA Toolkit that is
already on the target system when PyCUDA was installed. This requires that PyCUDA
www.nvidia.com
Installing TensorRT SWE-SWDOCTRT-001-INST_vTensorRT 6.0.1 | 24
Installing PyCUDA
be updated after the newer version of the CUDA Toolkit is installed. The steps below are
the most reliable method to ensure that everything works in a compatible fashion after
the CUDA Toolkit on your system has been upgraded.
1. Uninstall the existing PyCUDA installation.
2. Update CUDA. For more information, see the CUDA Installation Guide.
3. Install PyCUDA. To install PyCUDA, issue the following command:
www.nvidia.com
Installing TensorRT SWE-SWDOCTRT-001-INST_vTensorRT 6.0.1 | 25
Chapter 8.
INSTALLING ONNX FOR PYTHON
The binary distribution of ONNX from PyPI in certain scenarios may be incompatible
with the TensorRT Python bindings, specifically on Ubuntu 14.04 and RHEL 7.x. ONNX
and TensorRT are both using pybind11 to generate their Python bindings. If the STL
implementations are incompatible, then importing both the ONNX and TensorRT
Python modules at the same time will result in failure. To workaround this issue, build
the ONNX Python module from its source.
Ensure that you:
‣ install the following packages natively on your system and not through a virtual
environment such as Conda.
‣ have the following packages installed before proceeding.
The pip command below will install or upgrade the ONNX Python module from its
source to ensure compatibility with TensorRT, which was built using the distribution
compiler. Replace the version below with the specific version of ONNX that is supported
by your TensorRT release.
www.nvidia.com
Installing TensorRT SWE-SWDOCTRT-001-INST_vTensorRT 6.0.1 | 26
Chapter 9.
TROUBLESHOOTING
For troubleshooting support refer to your support engineer or post your questions onto
the NVIDIA Developer Forum.
www.nvidia.com
Installing TensorRT SWE-SWDOCTRT-001-INST_vTensorRT 6.0.1 | 27
Appendix A.
APPENDIX
A.1. ACKNOWLEDGEMENTS
TensorRT uses elements from the following software, whose licenses are reproduced
below:
Google Protobuf
This license applies to all parts of Protocol Buffers except the following:
‣ Redistributions of source code must retain the above copyright notice, this list of
conditions and the following disclaimer.
‣ Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimer in the documentation and/or other
materials provided with the distribution.
‣ Neither the name of Google Inc. nor the names of its contributors may be used to
endorse or promote products derived from this software without specific prior
written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
www.nvidia.com
Installing TensorRT SWE-SWDOCTRT-001-INST_vTensorRT 6.0.1 | 28
Appendix
Google Flatbuffers
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and
distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by the copyright
owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all other entities that
control, are controlled by, or are under common control with that entity. For the
purposes of this definition, "control" means (i) the power, direct or indirect, to cause
the direction or management of such entity, whether by contract or otherwise, or (ii)
ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial
ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions
granted by this License.
"Source" form shall mean the preferred form for making modifications, including
but not limited to software source code, documentation source, and configuration
files.
"Object" form shall mean any form resulting from mechanical transformation or
translation of a Source form, including but not limited to compiled object code,
generated documentation, and conversions to other media types.
www.nvidia.com
Installing TensorRT SWE-SWDOCTRT-001-INST_vTensorRT 6.0.1 | 29
Appendix
"Work" shall mean the work of authorship, whether in Source or Object form, made
available under the License, as indicated by a copyright notice that is included in or
attached to the work (an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object form, that
is based on (or derived from) the Work and for which the editorial revisions,
annotations, elaborations, or other modifications represent, as a whole, an original
work of authorship. For the purposes of this License, Derivative Works shall not
include works that remain separable from, or merely link (or bind by name) to the
interfaces of, the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including the original version
of the Work and any modifications or additions to that Work or Derivative Works
thereof, that is intentionally submitted to Licensor for inclusion in the Work by the
copyright owner or by an individual or Legal Entity authorized to submit on behalf
of the copyright owner. For the purposes of this definition, "submitted" means any
form of electronic, verbal, or written communication sent to the Licensor or its
representatives, including but not limited to communication on electronic mailing
lists, source code control systems, and issue tracking systems that are managed by,
or on behalf of, the Licensor for the purpose of discussing and improving the Work,
but excluding communication that is conspicuously marked or otherwise designated
in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of
whom a Contribution has been received by Licensor and subsequently incorporated
within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of this License, each
Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge,
royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works
of, publicly display, publicly perform, sublicense, and distribute the Work and such
Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of this License, each
Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge,
royalty-free, irrevocable (except as stated in this section) patent license to make,
have made, use, offer to sell, sell, import, and otherwise transfer the Work, where
such license applies only to those patent claims licensable by such Contributor that
are necessarily infringed by their Contribution(s) alone or by combination of their
Contribution(s) with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a cross-claim or counterclaim
in a lawsuit) alleging that the Work or a Contribution incorporated within the Work
constitutes direct or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate as of the date such
litigation is filed.
www.nvidia.com
Installing TensorRT SWE-SWDOCTRT-001-INST_vTensorRT 6.0.1 | 30
Appendix
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative
Works thereof in any medium, with or without modifications, and in Source or
Object form, provided that You meet the following conditions:
a. You must give any other recipients of the Work or Derivative Works a copy of
this License; and
b. You must cause any modified files to carry prominent notices stating that You
changed the files; and
c. You must retain, in the Source form of any Derivative Works that You distribute,
all copyright, patent, trademark, and attribution notices from the Source form
of the Work, excluding those notices that do not pertain to any part of the
Derivative Works; and
d. If the Work includes a "NOTICE" text file as part of its distribution, then any
Derivative Works that You distribute must include a readable copy of the
attribution notices contained within such NOTICE file, excluding those notices
that do not pertain to any part of the Derivative Works, in at least one of the
following places: within a NOTICE text file distributed as part of the Derivative
Works; within the Source form or documentation, if provided along with the
Derivative Works; or, within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents of the NOTICE
file are for informational purposes only and do not modify the License. You may
add Your own attribution notices within Derivative Works that You distribute,
alongside or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed as modifying the
License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions for use,
reproduction, or distribution of Your modifications, or for any such Derivative
Works as a whole, provided Your use, reproduction, and distribution of the
Work otherwise complies with the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise, any
Contribution intentionally submitted for inclusion in the Work by You to the
Licensor shall be under the terms and conditions of this License, without any
additional terms or conditions. Notwithstanding the above, nothing herein shall
supersede or modify the terms of any separate license agreement you may have
executed with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade names,
trademarks, service marks, or product names of the Licensor, except as required for
reasonable and customary use in describing the origin of the Work and reproducing
the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing,
Licensor provides the Work (and each Contributor provides its Contributions)
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
www.nvidia.com
Installing TensorRT SWE-SWDOCTRT-001-INST_vTensorRT 6.0.1 | 31
Appendix
www.nvidia.com
Installing TensorRT SWE-SWDOCTRT-001-INST_vTensorRT 6.0.1 | 32
Appendix
BVLC Caffe
COPYRIGHT
All contributions by the University of California:
Copyright (c) 2014, 2015, The Regents of the University of California (Regents) All rights
reserved.
All other contributions:
Copyright (c) 2014, 2015, the respective contributors All rights reserved.
Caffe uses a shared copyright model: each contributor holds copyright over their
contributions to Caffe. The project versioning records all such contribution and
copyright details. If a contributor wants to further mark their specific copyright on
a particular contribution, they should indicate their copyright solely in the commit
message of the change when it is committed.
LICENSE
Redistribution and use in source and binary forms, with or without modification, are
permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of
conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimer in the documentation and/or other
materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
CONTRIBUTION AGREEMENT
By contributing to the BVLC/Caffe repository through pull-request, comment, or
otherwise, the contributor releases their content to the license and copyright terms
herein.
www.nvidia.com
Installing TensorRT SWE-SWDOCTRT-001-INST_vTensorRT 6.0.1 | 33
Appendix
half.h
Copyright (c) 2012-2017 Christian Rau <rauy@users.sourceforge.net>
Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software"), to deal in the Software
without restriction, including without limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or
substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
jQuery.js
jQuery.js is generated automatically under doxygen.
In all cases TensorRT uses the functions under the MIT license.
CRC
policies, either expressed or implied, of the Regents of the University of California.
William Hoskins
getopt.c
Copyright (c) 2002 Todd C. Miller <Todd.Miller@courtesan.com>
Permission to use, copy, modify, and distribute this software for any purpose with
or without fee is hereby granted, provided that the above copyright notice and this
permission notice appear in all copies.
www.nvidia.com
Installing TensorRT SWE-SWDOCTRT-001-INST_vTensorRT 6.0.1 | 34
Appendix
www.nvidia.com
Installing TensorRT SWE-SWDOCTRT-001-INST_vTensorRT 6.0.1 | 35
Notice
THE INFORMATION IN THIS GUIDE AND ALL OTHER INFORMATION CONTAINED IN NVIDIA DOCUMENTATION
REFERENCED IN THIS GUIDE IS PROVIDED “AS IS.” NVIDIA MAKES NO WARRANTIES, EXPRESSED, IMPLIED,
STATUTORY, OR OTHERWISE WITH RESPECT TO THE INFORMATION FOR THE PRODUCT, AND EXPRESSLY
DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A
PARTICULAR PURPOSE. Notwithstanding any damages that customer might incur for any reason whatsoever,
NVIDIA’s aggregate and cumulative liability towards customer for the product described in this guide shall
be limited in accordance with the NVIDIA terms and conditions of sale for the product.
THE NVIDIA PRODUCT DESCRIBED IN THIS GUIDE IS NOT FAULT TOLERANT AND IS NOT DESIGNED,
MANUFACTURED OR INTENDED FOR USE IN CONNECTION WITH THE DESIGN, CONSTRUCTION, MAINTENANCE,
AND/OR OPERATION OF ANY SYSTEM WHERE THE USE OR A FAILURE OF SUCH SYSTEM COULD RESULT IN A
SITUATION THAT THREATENS THE SAFETY OF HUMAN LIFE OR SEVERE PHYSICAL HARM OR PROPERTY DAMAGE
(INCLUDING, FOR EXAMPLE, USE IN CONNECTION WITH ANY NUCLEAR, AVIONICS, LIFE SUPPORT OR OTHER
LIFE CRITICAL APPLICATION). NVIDIA EXPRESSLY DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY OF FITNESS
FOR SUCH HIGH RISK USES. NVIDIA SHALL NOT BE LIABLE TO CUSTOMER OR ANY THIRD PARTY, IN WHOLE OR
IN PART, FOR ANY CLAIMS OR DAMAGES ARISING FROM SUCH HIGH RISK USES.
NVIDIA makes no representation or warranty that the product described in this guide will be suitable for
any specified use without further testing or modification. Testing of all parameters of each product is not
necessarily performed by NVIDIA. It is customer’s sole responsibility to ensure the product is suitable and
fit for the application planned by customer and to do the necessary testing for the application in order
to avoid a default of the application or the product. Weaknesses in customer’s product designs may affect
the quality and reliability of the NVIDIA product and may result in additional or different conditions and/
or requirements beyond those contained in this guide. NVIDIA does not accept any liability related to any
default, damage, costs or problem which may be based on or attributable to: (i) the use of the NVIDIA
product in any manner that is contrary to this guide, or (ii) customer product designs.
Other than the right for customer to use the information in this guide with the product, no other license,
either expressed or implied, is hereby granted by NVIDIA under this guide. Reproduction of information
in this guide is permissible only if reproduction is approved by NVIDIA in writing, is reproduced without
alteration, and is accompanied by all associated conditions, limitations, and notices.
Trademarks
NVIDIA, the NVIDIA logo, and cuBLAS, CUDA, cuDNN, cuFFT, cuSPARSE, DALI, DIGITS, DGX, DGX-1, Jetson,
Kepler, NVIDIA Maxwell, NCCL, NVLink, Pascal, Tegra, TensorRT, and Tesla are trademarks and/or registered
trademarks of NVIDIA Corporation in the Unites States and other countries. Other company and product
names may be trademarks of the respective companies with which they are associated.
Copyright
© 2019 NVIDIA Corporation. All rights reserved.
www.nvidia.com