Technology Document Guide of TensorRT
Technology Document Guide of TensorRT
本示例支持指南概述了GitHub和产品包中包含的所有受支持的TensorRT 7.2.1示例。TensorRT示例在推荐程序、机器翻译、字符识别、图像分类和对象检测等领域有特殊帮助。
有关TensorRT开发文档,请参阅TensorRT归档文件。
- 1. Introduction
下面的示例展示了如何在许多用例中使用TensorRT,同时突出显示接口的不同功能。




1.1. Getting Started With C++ Samples
You can find the C++ samples in the /usr/src/tensorrt/samples package directory as well as on GitHub. The following C++ samples are shipped with TensorRT.
- “Hello World” For TensorRT
- Building A Simple MNIST Network Layer By Layer
- Importing The TensorFlow Model And Running Inference
- “Hello World” For TensorRT From ONNX
- Building And Running GoogleNet In TensorRT
- Building An RNN Network Layer By Layer
- Performing Inference In INT8 Using Custom Calibration
- Performing Inference In INT8 Precision
- Adding A Custom Layer To Your Network In TensorRT
- Object Detection With Faster R-CNN
- Object Detection With A TensorFlow SSD Network
- Movie Recommendation Using Neural Collaborative Filter (NCF)
- Movie Recommendation Using MPS (Multi-Process Service)
- Object Detection With SSD
- “Hello World” For Multilayer Perceptron (MLP)
- Specifying I/O Formats Using The Reformat Free I/O APIs
- Adding A Custom Layer That Supports INT8 I/O To Your Network In TensorRT
- Digit Recognition With Dynamic Shapes In TensorRT
- Neural Machine Translation (NMT) Using A Sequence To Sequence (seq2seq) Model
- Object Detection And Instance Segmentation With A TensorFlow Mask R-CNN Network
- Object Detection With A TensorFlow Faster R-CNN Network
- Algorithm Selection API Usage Example Based On sampleMNIST In TensorRT1
Getting Started With C++ Samples
每个C++样本包括一个GitHub中的README.md文件,该文件提供有关示例如何工作的详细信息、示例代码以及有关如何运行和验证其输出的分步说明。
Running C++ Samples on Linux
如果使用Debian文件安装TensorRT,在构建C++示例之前,首先复制/usr/src/tensorrt到新目录。如果使用tar文件安装了TensorRT,那么示例位于{TAR_EXTRACT_PATH}/samples中。要生成所有示例,然后运行其中一个示例,请使用以下命令:
$ cd <samples_dir>
$ make -j4
$ cd ../bin
$ ./<sample_bin>
Running C++ Samples on Windows
Windows上的所有C++样本都作为VisualStudio解决方案文件提供。若要生成示例,请打开其相应的VisualStudio解决方案文件并生成解决方案。输出可执行文件将在(ZIP_EXTRACT_PATH)\bin中生成。然后可以直接或通过visual studio运行可执行文件。
1.2. Getting Started With Python Samples
可以在/usr/src/tensorrt/samples/python包目录中找到Python示例。以下Python示例随TensorRT一起提供。
- Introduction To Importing Caffe, TensorFlow And ONNX Models Into TensorRT Using Python
- “Hello World” For TensorRT Using TensorFlow And Python
- “Hello World” For TensorRT Using PyTorch And Python
- Adding A Custom Layer To Your TensorFlow Network In TensorRT In Python
- Object Detection With The ONNX TensorRT Backend In Python
- Object Detection With SSD In Python
- INT8 Calibration In Python
- Refitting An Engine In Python
- TensorRT Inference Of ONNX Models With Custom Layers In Python
Getting Started With Python Samples
每个Python示例都包含README.md文件。请参阅
/usr/src/tensorrt/samples/python/<sample-name>/README.md文件获取有关示例如何工作的详细信息、示例代码以及有关如何运行和验证其输出的分步说明。
Running Python Samples
要运行其中一个Python示例,该过程通常包括两个步骤:
- Install the sample requirements:
- python<x> -m pip install -r requirements.txt
where python<x> is either python2 or python3.
- Run the sample code with the data directory provided if the TensorRT sample data is not in the default location. For example:
python<x> sample.py [-d DATA_DIR]
For more information on running samples, see the README.md file included with the sample.
Technology Document Guide of TensorRT的更多相关文章
- Oracle E-Business Suite Maintenance Guide Release 12.2(Patching Procedures)
更多内容参考: http://docs.oracle.com/cd/E51111_01/current/acrobat/122ebsmt.zip Preparing for Patching For ...
- TensorRT 介绍
引用:https://arleyzhang.github.io/articles/7f4b25ce/ 1 简介 TensorRT是一个高性能的深度学习推理(Inference)优化器,可以为深度学习应 ...
- Javascript 常用函数【1】
1:基础知识 1 创建脚本块 1: <script language=”JavaScript”> 2: JavaScript code goes here 3: </script&g ...
- vue+.netcore可支持业务代码扩展的开发框架 VOL.Vue 2.0版本发布
框架介绍 这是一个基于vue.element-ui.iview..netcore3.1 可支持前端.后台动态扩展业务代码快速开发框架. 框架内置定制开发的代码生成器,生成的代码不需要复制也不需要更改, ...
- 《Advanced Bash-scripting Guide》学习(十四):HERE Document和cat <<EOF
本文所选的例子来自于<Advanced Bash-scripting Gudie>一书,译者 杨春敏 黄毅 #here document cat <<EOF \z EOF ca ...
- The Practical Guide to Empathy Maps: 10-Minute User Personas
That’s where the empathy map comes in. When created correctly, empathy maps serve as the perfect lea ...
- SlickUpload Quick Start Guide
Quick Start Guide The SlickUpload quick start demonstrates how to install SlickUpload in a new or ex ...
- IMS Global Learning Tools Interoperability™ Implementation Guide
Final Version 1.1 Date Issued: 13 March 2012 Latest version: http://www.imsglobal ...
- P6 EPPM Installation and Configuration Guide 16 R1 April 2016
P6 EPPM Installation and Configuration Guide 16 R1 April 2016 Contents About Installing and ...
随机推荐
- LNMP环境搭建Wordpress博客
目录 LNMP架构工作原理 yum源安装 网站源包安装 LNMP是Linux Nginx MySQL/MariaDB Php/perl/python 的简称,是近些年才逐渐发展起来的构架,发展非常迅 ...
- xxl-job滥用netty导致的问题和解决方案
netty作为一种高性能的网络编程框架,在很多开源项目中大放异彩,十分亮眼,但是在有些项目中却被滥用,导致使用者使用起来非常的难受. 本篇文章将会讲解xxl-job作为一款分布式任务调度系统是如何滥用 ...
- C# 变体(variance)
上节讲到了泛型,这节延申一下,讲一下变体. 变体(variance)是协变(convariance)和抗变(也说逆变contravariance)的统称.这个概念在.net 4中引入,在.net 2. ...
- Asp.NetCore Web开发之初始文件解析
在写代码之前,有必要了解一下.net帮我们生成的文件都是干什么用的,在开发过程中他们都负责那些地方(下面以MVC模板举例). 先简单介绍一下什么是MVC,MVC(model-view-controll ...
- 前端必读:Vue响应式系统大PK(下)
转载请注明出处:葡萄城官网,葡萄城为开发者提供专业的开发工具.解决方案和服务,赋能开发者. 原文参考:https://www.sitepoint.com/vue-3-reactivity-system ...
- 『动善时』JMeter基础 — 23、JMeter中使用“用户自定义变量”实现参数化
目录 1.用户自定义变量介绍 2.使用"用户自定义变量"实现参数化 (1)测试计划内包含的元件 (2)数据文件内容 (3)测试计划界面内容 (4)线程组元件内容 (5)CSV数据文 ...
- [刷题] 237 Delete Nodes in a Linked List
要求 给定链表中的一个节点,删除该节点 思路 通过改变节点的值实现 实现 1 struct ListNode { 2 int val; 3 ListNode *next; 4 ListNode(in ...
- 使用LUKS加密你的磁盘
计算机数据的安全,保密性在现在的生活中显得越来越重要.随着数字化的时代的来临,越来越多的数据被数字化,特别是更多有关于我们隐私的数据在不断生成,甚至还有我们需要离线保存的密钥等.而且通常我们使用磁盘, ...
- jmeter从安装到使用
最近,项目需要做接口测试,在python和jmeter之前选择,最终还是选择jmeter,虽然脚本管理及持续集成方面有所不便,但胜在使用简单,调试方便,方便后续做并发压力测试,而且最后的报告统计图表也 ...
- DOCKER学习_018:Docker-Compose文件简介
Docker-Compose文件 通过之前的示例,其实我们可以看到,所有服务的管理,都是依靠docker-compose.yml文件来实现的.那么我们接下来就详细说一说docker-compose.y ...