当前位置:网站首页>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文件夹下,运行结果
若有误,请指正(谢谢)
边栏推荐
- 复选框的使用:全选,全不选,选一部分
- Joking about Domain Driven Design (III) -- Dilemma
- 后管中编辑与预览获取表单的值写法
- Use optimization | points that can be optimized in recyclerview
- Find the storage address of the elements in the two-dimensional array
- Creation and destruction of function stack frame
- Your family must be very poor if you fight like this!
- The left value and the right finger explain better
- How to return ordered keys after counter counts the quantity
- open file in 'w' mode: IOError: [Errno 2] No such file or directory
猜你喜欢

Check log4j problems using stain analysis

Joking about Domain Driven Design (III) -- Dilemma

Pytest (6) -fixture (Firmware)

从C到Capable-----利用指针作为函数参数求字符串是否为回文字符

【PyG】理解MessagePassing过程,GCN demo详解

MySql实战45讲【索引】

C language beginner level - pointer explanation - paoding jieniu chapter

Pytest (6) -fixture (Firmware)

Le processus de connexion mysql avec docker

I2C 子系統(四):I2C debug
随机推荐
[combinatorics] Application of exponential generating function (multiple set arrangement problem | different balls in different boxes | derivation of exponential generating function of odd / even sequ
用docker 连接mysql的过程
labelme标记的文件转换为yolov5格式
Force freeing memory in PHP
Xiaodi notes
Sqlserver row to column pivot
How to return ordered keys after counter counts the quantity
docker安装mysql
I2C subsystem (III): I2C driver
Spark on yarn资源优化思路笔记
SqlServer行转列PIVOT
[Fuhan 6630 encodes and stores videos, and uses RTSP server and timestamp synchronization to realize VLC viewing videos]
二维数组中的元素求其存储地址
How to limit the size of the dictionary- How to limit the size of a dictionary?
I2C 子系统(二):I3C spec
How to use asp Net MVC identity 2 change password authentication- How To Change Password Validation in ASP. Net MVC Identity 2?
[principles of multithreading and high concurrency: 1_cpu multi-level cache model]
MySql实战45讲【全局锁和表锁】
敏捷认证(Professional Scrum Master)模拟练习题
Are there any recommended term life insurance products? I want to buy a term life insurance.