一、问题描述

win10系统
**import tensorrt**后再import torch会报错“找不到指定程序,error loading “…cublas64_11.dll” or one of its dependencies”
image.png

二、解决方案

在我尝试了网上无数种方法后发现,是由于torch安装的cpu版本

  1. 使用pip uninstall torch卸载cpu版本的torch
  2. 去torch官网,下载cuda版本的torch