当前位置:网站首页>VS 2019配置tensorRT
VS 2019配置tensorRT
2022-07-03 03:06:00 【AphilGuo】
配置TensorRT
1、下载TensroRT:链接:https://developer.nvidia.com/nvidia-tensorrt-8x-download
2、将下载的文件进行解压,并将TensorRT中的include文件移动到CUDA文件夹下的include中,并将TensortRT文件中的lib中的dll与lib文件分别放到cuda中的bin与lib\x64文件夹中
3、安装TensorRT,分别对这四个文件进行安装
pip install tensorrt-8.2.5.1-cp37-none-win_amd64.whl

4、下载cudnn64_8.dll,并将该文件放到
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.1\bin 目录下
5、运行代码
import torch
import tensorrt as trt
print(trt.__version__)
print(torch.cuda.is_available())

6、运行示例,修改指定地方
7、下载cudnn:https://developer.nvidia.com/rdp/cudnn-download,将三个文件夹下的文件复制到NVIDIA GPU Computing Toolkit下对应的文件夹下
8、下载zlibwapi.dll文件,并将文件放在system32文件夹下,运行结果
若有误,请指正(谢谢)
边栏推荐
- The solution of "the required function is not supported" in win10 remote desktop connection is to modify the Registry [easy to understand]
- Destroy the session and empty the specified attributes
- C#通用接口调用
- Cron表达式介绍
- I2C 子系统(二):I3C spec
- What does it mean when lambda is not entered?
- Three. JS local environment setup
- 【PyG】理解MessagePassing过程,GCN demo详解
- HW initial preparation
- Use of check boxes: select all, deselect all, and select some
猜你喜欢

A2L file parsing based on CAN bus (2)

一文带你了解 ZigBee

Three.js本地环境搭建

Sous - système I2C (IV): débogage I2C

Practice of traffic recording and playback in vivo
![[shutter] monitor the transparency gradient of the scrolling action control component (remove the blank of the top status bar | frame layout component | transparency component | monitor the scrolling](/img/c3/b9a614001f80345a5c1cb3c68ab27c.jpg)
[shutter] monitor the transparency gradient of the scrolling action control component (remove the blank of the top status bar | frame layout component | transparency component | monitor the scrolling

MySql实战45讲【SQL查询和更新执行流程】

MySql实战45讲【索引】

C language beginner level - pointer explanation - paoding jieniu chapter
![45 lectures on MySQL [index]](/img/f6/70be00028908cbd9ed7f2c77687cee.png)
45 lectures on MySQL [index]
随机推荐
How to implement append in tensor
[combinatorics] Application of exponential generating function (multiple set arrangement problem | different balls in different boxes | derivation of exponential generating function of odd / even sequ
Le processus de connexion mysql avec docker
docker安装redis
Counter统计数量后,如何返回有序的key
C # general interface call
MySql實戰45講【SQL查詢和更新執行流程】
复选框的使用:全选,全不选,选一部分
Use of check boxes: select all, deselect all, and select some
I2C 子系统(二):I3C spec
Left connection, inner connection
左连接,内连接
tensor中的append应该如何实现
Kubernetes family container housekeeper pod online Q & A?
敏捷认证(Professional Scrum Master)模拟练习题
后管中编辑与预览获取表单的值写法
Spark on yarn资源优化思路笔记
【PyG】理解MessagePassing过程,GCN demo详解
Add MDF database file to SQL Server database, and the error is reported
Docker install redis