当前位置:网站首页>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文件夹下,运行结果
若有误,请指正(谢谢)
边栏推荐
- SQL server queries the table structure of the specified table
- Force freeing memory in PHP
- I2C 子系统(四):I2C debug
- 销毁Session和清空指定的属性
- About HTTP cache control
- JMeter performance test JDBC request (query database to obtain database data) use "suggestions collection"
- Are there any recommended term life insurance products? I want to buy a term life insurance.
- Opengauss database development and debugging tool guide
- Chart. JS multitooltip tag - chart js multiTooltip labels
- 3D drawing example
猜你喜欢

Add some hard dishes to the interview: how to improve throughput and timeliness in delayed task scenarios!

Can netstat still play like this?

用docker 连接mysql的过程

Distributed transaction

TCP 三次握手和四次挥手机制,TCP为什么要三次握手和四次挥手,TCP 连接建立失败处理机制

I2C 子系统(二):I3C spec
![ASP. Net core 6 framework unveiling example demonstration [02]: application development based on routing, MVC and grpc](/img/cb/145937a27ef08050a370d5a255215a.jpg)
ASP. Net core 6 framework unveiling example demonstration [02]: application development based on routing, MVC and grpc

Didi programmers are despised by relatives: an annual salary of 800000 is not as good as two teachers

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

I2C 子系统(四):I2C debug
随机推荐
Agile certification (professional scrum Master) simulation exercises
敏捷认证(Professional Scrum Master)模拟练习题-2
Chart. JS multitooltip tag - chart js multiTooltip labels
Add automatic model generation function to hade
I2C 子系统(三):I2C Driver
Kubernetes cluster log and efk architecture log scheme
力扣------网格中的最小路径代价
从输入URL到页面展示这中间发生了什么?
Andwhere multiple or query ORM conditions in yii2
How to limit the size of the dictionary- How to limit the size of a dictionary?
Pytest (6) -fixture (Firmware)
Tensorflow to pytorch notes; tf. gather_ Nd (x, y) to pytorch
Sqlserver row to column pivot
[combinatorics] Application of exponential generating function (multiple set arrangement problem | different balls in different boxes | derivation of exponential generating function of odd / even sequ
Add some hard dishes to the interview: how to improve throughput and timeliness in delayed task scenarios!
tensor中的append应该如何实现
I2C 子系统(一):I2C spec
How to implement append in tensor
idea 加载不了应用市场解决办法(亲测)
敏捷认证(Professional Scrum Master)模拟练习题