当前位置:网站首页>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文件夹下,运行结果
若有误,请指正(谢谢)
边栏推荐
- open file in 'w' mode: IOError: [Errno 2] No such file or directory
- 力扣------网格中的最小路径代价
- 用docker 连接mysql的过程
- How to return ordered keys after counter counts the quantity
- HW initial preparation
- Add MDF database file to SQL Server database, and the error is reported
- [combinatorics] Application of exponential generating function (multiple set arrangement problem | different balls in different boxes | derivation of exponential generating function of odd / even sequ
- Andwhere multiple or query ORM conditions in yii2
- docker安装mysql
- 敏捷认证(Professional Scrum Master)模拟练习题
猜你喜欢
I2C subsystem (I): I2C spec
C language beginner level - pointer explanation - paoding jieniu chapter
Deep reinforcement learning for intelligent transportation systems: a survey paper reading notes
Do you really understand relays?
I2C 子系统(一):I2C spec
Deep learning: multi-layer perceptron and XOR problem (pytoch Implementation)
HTB-Devel
Agile certification (professional scrum Master) simulation exercise-2
MySql實戰45講【SQL查詢和更新執行流程】
MySQL Real combat 45 [SQL query and Update Execution Process]
随机推荐
SQL server queries the table structure of the specified table
Edit and preview in the back pipe to get the value writing method of the form
Force deduction ----- the minimum path cost in the grid
Can netstat still play like this?
Andwhere multiple or query ORM conditions in yii2
MySql實戰45講【SQL查詢和更新執行流程】
MySQL practice 45 [global lock and table lock]
Change cell color in Excel using C - cell color changing in Excel using C
C#通用接口调用
HTB-Devel
Unity3d human skin real time rendering real simulated human skin real time rendering "suggestions collection"
C语言中左值和右值的区别
Super easy to use logzero
Introduction to cron expression
Agile certification (professional scrum Master) simulation exercise-2
Can I use read-only to automatically implement properties- Is read-only auto-implemented property possible?
Basic information of Promethus (I)
Tensorflow to pytorch notes; tf. gather_ Nd (x, y) to pytorch
Yiwen takes you to know ZigBee
Process the dataset and use labelencoder to convert all IDs to start from 0