当前位置:   article > 正文

部署PointPillars出错_this version of the onnx parser only supports tens

this version of the onnx parser only supports tensorrt inetworkdefinitions w

autoware的PointPillars 遇到如下错误

ERROR: ModelImporter.cpp:472 In function importModel:
[4] Assertion failed: !_importer_ctx.network()->hasImplicitBatchDimension() && "This version of the ONNX parser only supports TensorRT INetworkDefinitions with an explicit batch dimension. Please ensure the network was created using the EXPLICIT_BATCH NetworkDefinitionCreationFlag."
ERROR: failed to parse onnx file

  • 1
  • 2
  • 3
  • 4

在这里找到了解决办法

https://www.cnblogs.com/cyssmile/p/15399109.html

nvinfer1::INetworkDefinition* network = builder->createNetworkV2(0);的0改成1即可;
或者将nvinfer1::INetworkDefinition *network = builder->createNetwork()改成nvinfer1::INetworkDefinition *network = builder->createNetworkV2(1)

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/blog/article/detail/57678
推荐阅读
相关标签
  

闽ICP备14008679号