Technology Document Guide of TensorRT

Abstract

本示例支持指南概述了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 NetworkAlgorithm 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//README.md文件获取有关示例如何工作的详细信息、示例代码以及有关如何运行和验证其输出的分步说明。

Running Python Samples

要运行其中一个Python示例,该过程通常包括两个步骤:

Install the sample requirements:

  1. python -m pip install -r requirements.txt

where python 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 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相关推荐

  1. TensorRT简介

    TensorRT 介绍 引用:https://arleyzhang.github.io/articles/7f4b25ce/ 1 简介 TensorRT是一个高性能的深度学习推理(Inference) ...

  2. 【小知识】MATLAB的App Designer与GUIDE

    本文翻译自Loren Shure(2018年7月25日)的博客文章<The State of App Building in MATLAB>,原文地址:https://blogs.math ...

  3. 我手中的电子书书目清单(开始提供BT下载)

    13G电子书开始提供BT下载,下载说明及BT种子下载见我另一Blog网页:http://blog.csdn.net/yiyuan/archive/2005/10/16/504747.aspx 我手中的 ...

  4. yiyuan编程电子书系列(目录及种子)

    感觉不错,整个一个电子书库,与大家一起分享一下 BT下载地址: YiYuan编程电子书系列1 http://nnv.dl1.btchina.net/download.php?s=38fff1692d9 ...

  5. 事半功倍系列 javascript

    清华大学出版的<事半功倍系列 javascript>,本人照着书敲出来的,有些翻译了一下.前几年看了一下,最近无事,重新翻了翻,很有帮助.本书应该有光盘的,但学校的书,光盘不知在哪.希望对 ...

  6. YOLOv5导出jit,onnx,engine

    一.YOLOv5导出jit YOLOv5自导出,我们可以直接用它的导出代码:models/export.py """Exports a YOLOv5 *.pt model ...

  7. Sun地系统架构师考试(SCEA)

    http://www.qqgb.com/Program/Java/JavaBlog/Program_146087.html 今天,2005年4月9号中午,我通过了Sun的系统架构师考试(SCEA)的3 ...

  8. [经典推荐]事半功倍系列之javascript

    本文由经典论坛 邓永炎 整理 清华大学出版的<事半功倍系列 javascript>,本人照着书敲出来的,有些翻译了一下.前几年看了一下,最近无事,重新翻了翻,很有帮助.本书应该有光盘的,但 ...

  9. NXP S32K144开发(一)环境搭建和新建工程

    1.首先需要安装S32 Design Studio for ARM,在NXP官网可以搜索到,这玩意也是基于eclipse的 安装好后就可以打开了. 2.新建工程 过程可以参考NXP官网: https: ...

最新文章

  1. VMware备份研究
  2. 2020人工神经网络第一次作业
  3. 苹果airpods android,苹果AirPodsPro搭配Android手机实测:支持功能不够完整,购买前要认真考虑...
  4. (转)Thread的中断机制(interrupt)
  5. OS_CORE.C(6)
  6. android webview 获取图片,Android – 保存WebView中的图片
  7. 吴涛 :低延迟传输协议和新Codec将成为热点
  8. Redis数据库(四)——Redis集群模式(主从复制、哨兵、Cluster)
  9. kafka常见的问题(具体详细)
  10. iOS中的WiFi与硬件通信
  11. 探讨NET Core数据进行3DES加密或解密弱密钥问题
  12. 计算机控制论文,计算机控制系统论文.ppt
  13. 做产品,大公司克制,小公司放纵
  14. centos6 安装xhprof扩展
  15. U盘安装ubuntu 14.10遇到gfxboot.c32
  16. excel两个表格数据对比_教你如何使用excel快速对比多项数据
  17. ElasticSearch文档检索,分词、精确匹配、多条件
  18. 内存的读写速度是硬盘的多少倍
  19. ECShop 替换手机版购物首页(2)
  20. 第十七届全国大学生智能汽车竞赛百度创意组来啦

热门文章

  1. Docker安装Apache与运行简单的web服务——httpd helloworld
  2. liunx上mysql源码安装mysql,搞定linux上MySQL编程(一):linux上源码安装MySQL
  3. 2022-2028年中国散热产业深度调研及投资前景预测报告(全卷)
  4. 2022-2028年中国金属薄膜行业市场深度监测及投资潜力研究报告
  5. Docker学习(八)-----Docker安装mysql
  6. ISOOSI网络模型的通俗解析
  7. 基于BERT预训练的中文命名实体识别TensorFlow实现
  8. 正则表达式中的\.表示什么意思
  9. MinkowskiEngine demo ModelNet40分类
  10. 人脸真伪验证与识别:ICCV2019论文解析