• 感谢大家访问本站,希望本站的内容可以帮助到大家!

  • 如果觉得本站的内容有帮助,可以考虑打赏博主哦!

  • 问题反馈可发送邮件到stubbornhuang@qq.com

  • 工资「喂饱肚子」,副业「养活灵魂」!

  • 欢迎大家交换友链,可在https://www.stubbornhuang.com/申请友情链接进行友链交换申请!

  • 计算机图形学与计算几何经典必备书单整理,下载链接可参考:https://www.stubbornhuang.com/1256/

  • 在本站开通年度VIP,无限制下载本站资源和阅读本站文章

  • 本站由于前段时间遭受到大量临时和国外邮箱注册,所以对可注册的邮箱类型进行了限制!

  • 本站会放置Google广告用于维持域名以及网站服务器费用。

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 发布于2023-03-03 阅读 3,374次 0次评论 0次点赞 本文共1070个字,阅读需要3分钟。

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的开发者文档中是这么描述的,

TensorRT -  Using an engine plan file across different models of devices is not recommended and is likely to affect performance or even cause errors-第0张图片

开发者文档链接: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版本去加载和推理所保存的模型文件,避免出现性能和其他未知问题。

参考链接

欢迎扫码关注我的微信公众号,及时获取文章更新

微信公众号二维码

本文作者: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年06月21日 17:07:15

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。

文章末尾
上一篇
TensorRT - TensorRT was linked against cuBLAS/cuBLAS LT 11.6.1 but loaded cuBLAS/cuBLAS LT 11.5.4错误提示
TensorRT
下一篇
TensorRT - 计算模型推理时间
TensorRT
当前分类随机文章推荐

发表评论

您必须 [ 登录 ] 才能发表留言!

关注我们的公众号

微信公众号