TensorRT – Using an engine plan file across different models of devices is not recommended and is likely to affect performance or even cause errors
本文作者:StubbornHuang
版权声明:本文为站长原创文章,如果转载请注明原文链接!
原文标题:TensorRT – Using an engine plan file across different models of devices is not recommended and is likely to affect performance or even cause errors
原文链接:https://www.stubbornhuang.com/2531/
发布于:2023年03月03日 9:47:23
修改于:2023年03月03日 11:31:57

1 TensorRT加载模型出现警告Using an engine plan file across different models of devices is not recommended and is likely to affect performance or even cause errors
经常会在使用TensorRT加载使用TensorRT转换后的深度学习模型时出现以下的警告:
[W] [TRT] Using an engine plan file across different models of devices is not recommended and is likely to affect performance or even cause errors.
在TensorRT的开发者文档中是这么描述的,

开发者文档链接:https://docs.nvidia.com/deeplearning/tensorrt/developer-guide/index.html#faq
上面的原话是
This warning message can occur if you build an engine on a device with the same compute capability but is not identical to the device that is used to run the engine.
As indicated by the warning, it is highly recommended to use a device of the same model when generating the engine and deploying it to avoid compatibility issues.
翻译过来就是:
如果您在具有相同计算能力但与用于运行引擎的设备不同的设备上构建引擎,则会出现此警告消息。
如警告所示,强烈建议在生成和部署引擎时使用相同型号的设备以避免兼容性问题。
一般来说我们会使用TensorRT对onnx模型进行转换并保存到本地,方便我们在后续运行时加载模型更加快速,但是我们在后续使用TensorRT加载这个模型文件时,TensorRT内部会检查这个模型文件是不是在当前的这个GPU上创建的,有的时候TensorRT会检查到这个模型文件是在不同GPU上创建的,如果模型文件可以被正常加载并且可以推理,那么你可以忽略这个警告信息。
不过最好使用相同型号的GPU和同样的TensorRT版本去加载和推理所保存的模型文件,避免出现性能和其他未知问题。
参考链接
当前分类随机文章推荐
- TensorRT - 使用trtexec工具转换模型、运行模型、测试网络性能 阅读3405次,点赞1次
- TensorRT - workspace的作用 阅读331次,点赞0次
- TensorRT - TensorRT was linked against cuBLAS/cuBLAS LT 11.6.1 but loaded cuBLAS/cuBLAS LT 11.5.4错误提示 阅读58次,点赞0次
- TensorRT - 计算模型推理时间 阅读82次,点赞1次
- TensorRT - 使用Polygraphy工具比较onnx模型和TensorRT模型的推理结果是否一致 阅读314次,点赞1次
- TensorRT - onnx_graphsurgeon工具库的安装与API简介 阅读531次,点赞0次
- TensorRT - 解决INVALID_ARGUMENT: getPluginCreator could not find plugin ScatterND version 1,TensorRT找不到ScatterND插件的问题 阅读3286次,点赞0次
- TensorRT - 使用C++ SDK出现无法解析的外部符号 "class sample::Logger sample::gLogger"错误 阅读220次,点赞0次
- TensorRT - Using an engine plan file across different models of devices is not recommended and is likely to affect performance or even cause errors 阅读73次,点赞0次
- TensorRT - 扩展TensorRT C++API的模型输入维度,增加Dims5,Dims6,Dims7,Dims8 阅读1646次,点赞0次
全站随机文章推荐
- WordPress - 发送邮件很慢的解决办法 阅读510次,点赞1次
- WordPress - 修复WordPress升级5.1之后版本评论回复按钮失效不跳转以及不弹出评论框的问题 阅读751次,点赞0次
- OpenCV - 将OpenCV视频帧绘制到Win32窗口或者MFC控件上的CvvImage类,包括老版IplImage与新版Mat的绘制 阅读1252次,点赞0次
- 深度学习 - 在大数据集下,内存容量与磁盘IO速度影响模型训练速度的问题 阅读43次,点赞0次
- 资源分享 - GPU Pro 360 - Guide to Geometry Manipulation 英文高清PDF下载 阅读2025次,点赞0次
- C++ - 拷贝构造函数与拷贝构造函数调用时机 阅读260次,点赞0次
- Python3爬虫 - requests的请求响应状态码(requests.status_code) 阅读8877次,点赞4次
- 资源分享 - VR Developer Gems 英文高清PDF下载 阅读1406次,点赞1次
- Python - argparse命令行参数解析库用法总结 阅读500次,点赞0次
- 资源分享 - C++程序设计语言(第4部分 标准库),原书第4版 高清PDF下载 阅读2466次,点赞2次
评论
167