Onnx2trt install

Description

When I install onnx-tensorrt and enter make -j8 to compile, errors is reported.
Here is the output:
nvidia@nvidia-desktop:~/onnx-tensorrt/build$ sudo make -j8
Scanning dependencies of target gen_onnx_proto
[ 1%] Running gen_proto.py on onnx/onnx.in.proto
Processing /home/nvidia/onnx-tensorrt/third_party/onnx/onnx/onnx.in.proto
Writing /home/nvidia/onnx-tensorrt/build/third_party/onnx/onnx/onnx_onnx2trt_onnx-ml.proto
Writing /home/nvidia/onnx-tensorrt/build/third_party/onnx/onnx/onnx_onnx2trt_onnx-ml.proto3
Writing /home/nvidia/onnx-tensorrt/build/third_party/onnx/onnx/onnx-ml.pb.h
generating /home/nvidia/onnx-tensorrt/build/third_party/onnx/onnx/onnx_pb.py
[ 2%] Running C++ protocol buffer compiler on /home/nvidia/onnx-tensorrt/build/third_party/onnx/onnx/onnx_onnx2trt_onnx-ml.proto
[ 2%] Built target gen_onnx_proto
[ 3%] Running gen_proto.py on onnx/onnx-data.in.proto
[ 4%] Running gen_proto.py on onnx/onnx-operators.in.proto
Processing /home/nvidia/onnx-tensorrt/third_party/onnx/onnx/onnx-operators.in.proto
Processing /home/nvidia/onnx-tensorrt/third_party/onnx/onnx/onnx-data.in.proto
Writing /home/nvidia/onnx-tensorrt/build/third_party/onnx/onnx/onnx-operators_onnx2trt_onnx-ml.proto
Writing /home/nvidia/onnx-tensorrt/build/third_party/onnx/onnx/onnx-data_onnx2trt_onnx.proto
Writing /home/nvidia/onnx-tensorrt/build/third_party/onnx/onnx/onnx-data_onnx2trt_onnx.proto3
Writing /home/nvidia/onnx-tensorrt/build/third_party/onnx/onnx/onnx-operators_onnx2trt_onnx-ml.proto3
Writing /home/nvidia/onnx-tensorrt/build/third_party/onnx/onnx/onnx-data.pb.h
generating /home/nvidia/onnx-tensorrt/build/third_party/onnx/onnx/onnx_data_pb.py
Writing /home/nvidia/onnx-tensorrt/build/third_party/onnx/onnx/onnx-operators-ml.pb.h
generating /home/nvidia/onnx-tensorrt/build/third_party/onnx/onnx/onnx_operators_pb.py
[ 5%] Running C++ protocol buffer compiler on /home/nvidia/onnx-tensorrt/build/third_party/onnx/onnx/onnx-data_onnx2trt_onnx.proto
[ 6%] Running C++ protocol buffer compiler on /home/nvidia/onnx-tensorrt/build/third_party/onnx/onnx/onnx-operators_onnx2trt_onnx-ml.proto
Scanning dependencies of target onnx_proto
[ 8%] Building CXX object third_party/onnx/CMakeFiles/onnx_proto.dir/onnx/onnx_onnx2trt_onnx-ml.pb.cc.o
[ 9%] Building CXX object third_party/onnx/CMakeFiles/onnx_proto.dir/onnx/onnx-operators_onnx2trt_onnx-ml.pb.cc.o
[ 10%] Building CXX object third_party/onnx/CMakeFiles/onnx_proto.dir/onnx/onnx-data_onnx2trt_onnx.pb.cc.o
[ 11%] Linking CXX static library libonnx_proto.a
[ 13%] Built target onnx_proto
Scanning dependencies of target nvonnxparser_static
Scanning dependencies of target nvonnxparser
Scanning dependencies of target onnx
[ 14%] Building CXX object CMakeFiles/nvonnxparser_static.dir/onnx2trt_utils.cpp.o
[ 16%] Building CXX object CMakeFiles/nvonnxparser_static.dir/builtin_op_importers.cpp.o
[ 17%] Building CXX object CMakeFiles/nvonnxparser_static.dir/onnxErrorRecorder.cpp.o
[ 18%] Building CXX object CMakeFiles/nvonnxparser_static.dir/ShapedWeights.cpp.o
[ 19%] Building CXX object CMakeFiles/nvonnxparser_static.dir/NvOnnxParser.cpp.o
[ 20%] Building CXX object CMakeFiles/nvonnxparser.dir/NvOnnxParser.cpp.o
[ 21%] Building CXX object CMakeFiles/nvonnxparser_static.dir/ModelImporter.cpp.o
[ 22%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/checker.cc.o
/home/nvidia/onnx-tensorrt/onnx2trt_utils.cpp:6:10: fatal error: NvInferSafeRuntime.h: 没有那个文件或目录
#include “NvInferSafeRuntime.h”
^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
CMakeFiles/nvonnxparser_static.dir/build.make:101: recipe for target ‘CMakeFiles/nvonnxparser_static.dir/onnx2trt_utils.cpp.o’ failed
make[2]: *** [CMakeFiles/nvonnxparser_static.dir/onnx2trt_utils.cpp.o] Error 1
make[2]: *** 正在等待未完成的任务…
[ 24%] Building CXX object CMakeFiles/nvonnxparser.dir/ModelImporter.cpp.o
In file included from /home/nvidia/onnx-tensorrt/ImporterContext.hpp:8:0,
from /home/nvidia/onnx-tensorrt/ConditionalHelpers.hpp:10,
from /home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:6:
/home/nvidia/onnx-tensorrt/onnx2trt_utils.hpp:377:117: error: ‘nvinfer1::ScatterMode’ has not been declared
IImporterContext* ctx, const ::ONNX_NAMESPACE::NodeProto& node, std::vector& inputs, nvinfer1::ScatterMode mode, int32_t axis = 0);
^~~~~~~~~~~
In file included from /home/nvidia/onnx-tensorrt/onnxErrorRecorder.hpp:8:0,
from /home/nvidia/onnx-tensorrt/onnxErrorRecorder.cpp:5:
/home/nvidia/onnx-tensorrt/onnx2trt_utils.hpp:377:117: error: ‘nvinfer1::ScatterMode’ has not been declared
IImporterContext* ctx, const ::ONNX_NAMESPACE::NodeProto& node, std::vector& inputs, nvinfer1::ScatterMode mode, int32_t axis = 0);
^~~~~~~~~~~
In file included from /home/nvidia/onnx-tensorrt/ShapedWeights.cpp:6:0:
/home/nvidia/onnx-tensorrt/onnx2trt_utils.hpp:377:117: error: ‘nvinfer1::ScatterMode’ has not been declared
IImporterContext* ctx, const ::ONNX_NAMESPACE::NodeProto& node, std::vector& inputs, nvinfer1::ScatterMode mode, int32_t axis = 0);
^~~~~~~~~~~
In file included from /home/nvidia/onnx-tensorrt/ImporterContext.hpp:8:0,
from /home/nvidia/onnx-tensorrt/ModelImporter.hpp:7,
from /home/nvidia/onnx-tensorrt/ModelImporter.cpp:5:
/home/nvidia/onnx-tensorrt/onnx2trt_utils.hpp:377:117: error: ‘nvinfer1::ScatterMode’ has not been declared
IImporterContext* ctx, const ::ONNX_NAMESPACE::NodeProto& node, std::vector& inputs, nvinfer1::ScatterMode mode, int32_t axis = 0);
^~~~~~~~~~~
In file included from /home/nvidia/onnx-tensorrt/ConditionalHelpers.hpp:10:0,
from /home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:6:
/home/nvidia/onnx-tensorrt/ImporterContext.hpp: In constructor ‘onnx2trt::ErrorRecorderWrapper::ErrorRecorderWrapper(nvinfer1::INetworkDefinition*, nvinfer1::ILogger*)’:
/home/nvidia/onnx-tensorrt/ImporterContext.hpp:26:44: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘getErrorRecorder’
mUserErrorRecorder = mNetwork->getErrorRecorder();
^~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/ImporterContext.hpp:34:27: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘setErrorRecorder’
mNetwork->setErrorRecorder(mOnnxErrorRecorder);
^~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/ImporterContext.hpp: In destructor ‘onnx2trt::ErrorRecorderWrapper::~ErrorRecorderWrapper()’:
/home/nvidia/onnx-tensorrt/ImporterContext.hpp:45:27: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘setErrorRecorder’
mNetwork->setErrorRecorder(mUserErrorRecorder);
^~~~~~~~~~~~~~~~
In file included from /home/nvidia/onnx-tensorrt/ImporterContext.hpp:8:0,
from /home/nvidia/onnx-tensorrt/ModelImporter.hpp:7,
from /home/nvidia/onnx-tensorrt/NvOnnxParser.cpp:6:
/home/nvidia/onnx-tensorrt/onnx2trt_utils.hpp:377:117: error: ‘nvinfer1::ScatterMode’ has not been declared
IImporterContext* ctx, const ::ONNX_NAMESPACE::NodeProto& node, std::vector& inputs, nvinfer1::ScatterMode mode, int32_t axis = 0);
^~~~~~~~~~~
In file included from /home/nvidia/onnx-tensorrt/ImporterContext.hpp:8:0,
from /home/nvidia/onnx-tensorrt/ModelImporter.hpp:7,
from /home/nvidia/onnx-tensorrt/NvOnnxParser.cpp:6:
/home/nvidia/onnx-tensorrt/onnx2trt_utils.hpp:377:117: error: ‘nvinfer1::ScatterMode’ has not been declared
E::NodeProto& node, std::vector& inputs, nvinfer1::ScatterMode mode, int32_t axis = 0);
^~~~~~~~~~~
CMakeFiles/nvonnxparser_static.dir/build.make:127: recipe for target ‘CMakeFiles/nvonnxparser_static.dir/ShapedWeights.cpp.o’ failed
make[2]: *** [CMakeFiles/nvonnxparser_static.dir/ShapedWeights.cpp.o] Error 1
In file included from /home/nvidia/onnx-tensorrt/ModelImporter.hpp:7:0,
from /home/nvidia/onnx-tensorrt/ModelImporter.cpp:5:
/home/nvidia/onnx-tensorrt/ImporterContext.hpp: In constructor ‘onnx2trt::ErrorRecorderWrapper::ErrorRecorderWrapper(nvinfer1::INetworkDefinition*, nvinfer1::ILogger*)’:
/home/nvidia/onnx-tensorrt/ImporterContext.hpp:26:44: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘getErrorRecorder’
mUserErrorRecorder = mNetwork->getErrorRecorder();
^~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/ImporterContext.hpp:34:27: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘setErrorRecorder’
mNetwork->setErrorRecorder(mOnnxErrorRecorder);
^~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/ImporterContext.hpp: In destructor ‘onnx2trt::ErrorRecorderWrapper::~ErrorRecorderWrapper()’:
/home/nvidia/onnx-tensorrt/ImporterContext.hpp:45:27: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘setErrorRecorder’
mNetwork->setErrorRecorder(mUserErrorRecorder);
^~~~~~~~~~~~~~~~
[ 25%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/common/assertions.cc.o
In file included from /home/nvidia/onnx-tensorrt/ModelImporter.hpp:7:0,
from /home/nvidia/onnx-tensorrt/NvOnnxParser.cpp:6:
/home/nvidia/onnx-tensorrt/ImporterContext.hpp: In constructor ‘onnx2trt::ErrorRecorderWrapper::ErrorRecorderWrapper(nvinfer1::INetworkDefinition*, nvinfer1::ILogger*)’:
/home/nvidia/onnx-tensorrt/ImporterContext.hpp:26:44: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘getErrorRecorder’
mUserErrorRecorder = mNetwork->getErrorRecorder();
^~~~~~~~~~~~~~~~
In file included from /home/nvidia/onnx-tensorrt/ImporterContext.hpp:8:0,
from /home/nvidia/onnx-tensorrt/ModelImporter.hpp:7,
from /home/nvidia/onnx-tensorrt/ModelImporter.cpp:5:
/home/nvidia/onnx-tensorrt/onnx2trt_utils.hpp:377:117: error: ‘nvinfer1::ScatterMode’ has not been declared
IImporterContext* ctx, const ::ONNX_NAMESPACE::NodeProto& node, std::vector& inputs, nvinfer1::ScatterMode mode, int32_t axis = 0);
^~~~~~~~~~~
/home/nvidia/onnx-tensorrt/ImporterContext.hpp:34:27: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘setErrorRecorder’
mNetwork->setErrorRecorder(mOnnxErrorRecorder);
^~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/ImporterContext.hpp: In destructor ‘onnx2trt::ErrorRecorderWrapper::~ErrorRecorderWrapper()’:
/home/nvidia/onnx-tensorrt/ImporterContext.hpp:45:27: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘setErrorRecorder’
mNetwork->setErrorRecorder(mUserErrorRecorder);
^~~~~~~~~~~~~~~~
In file included from /home/nvidia/onnx-tensorrt/ModelImporter.hpp:7:0,
from /home/nvidia/onnx-tensorrt/NvOnnxParser.cpp:6:
/home/nvidia/onnx-tensorrt/ImporterContext.hpp: In constructor ‘onnx2trt::ErrorRecorderWrapper::ErrorRecorderWrapper(nvinfer1::INetworkDefinition*, nvinfer1::ILogger*)’:
/home/nvidia/onnx-tensorrt/ImporterContext.hpp:26:44: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘getErrorRecorder’
mUserErrorRecorder = mNetwork->getErrorRecorder();
^~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/ImporterContext.hpp:34:27: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘setErrorRecorder’
mNetwork->setErrorRecorder(mOnnxErrorRecorder);
^~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/ImporterContext.hpp: In destructor ‘onnx2trt::ErrorRecorderWrapper::~ErrorRecorderWrapper()’:
/home/nvidia/onnx-tensorrt/ImporterContext.hpp:45:27: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘setErrorRecorder’
mNetwork->setErrorRecorder(mUserErrorRecorder);
^~~~~~~~~~~~~~~~
In file included from /home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:6:0:
/home/nvidia/onnx-tensorrt/ConditionalHelpers.hpp: At global scope:
/home/nvidia/onnx-tensorrt/ConditionalHelpers.hpp:39:61: error: ‘IIfConditionalInputLayer’ is not a member of ‘nvinfer1’
using InputsMap = std::unordered_map<std::string, nvinfer1::IIfConditionalInputLayer*>;
^~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/ConditionalHelpers.hpp:39:61: note: suggested alternative: ‘IConstantLayer’
using InputsMap = std::unordered_map<std::string, nvinfer1::IIfConditionalInputLayer*>;
^~~~~~~~~~~~~~~~~~~~~~~~
IConstantLayer
/home/nvidia/onnx-tensorrt/ConditionalHelpers.hpp:39:61: error: ‘IIfConditionalInputLayer’ is not a member of ‘nvinfer1’
/home/nvidia/onnx-tensorrt/ConditionalHelpers.hpp:39:61: note: suggested alternative: ‘IConstantLayer’
using InputsMap = std::unordered_map<std::string, nvinfer1::IIfConditionalInputLayer*>;
^~~~~~~~~~~~~~~~~~~~~~~~
IConstantLayer
/home/nvidia/onnx-tensorrt/ConditionalHelpers.hpp:39:86: error: template argument 2 is invalid
using InputsMap = std::unordered_map<std::string, nvinfer1::IIfConditionalInputLayer*>;
^
/home/nvidia/onnx-tensorrt/ConditionalHelpers.hpp:39:86: error: template argument 5 is invalid
/home/nvidia/onnx-tensorrt/ConditionalHelpers.hpp:42:68: error: ‘nvinfer1::IIfConditional’ has not been declared
onnx2trt::Status addIfInputLayers(IImporterContext* ctx, nvinfer1::IIfConditional* conditional, InputsMap& inputsMap,
^~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/ConditionalHelpers.hpp:42:97: error: ‘InputsMap’ has not been declared
onnx2trt::Status addIfInputLayers(IImporterContext* ctx, nvinfer1::IIfConditional* conditional, InputsMap& inputsMap,
^~~~~~~~~
/home/nvidia/onnx-tensorrt/ConditionalHelpers.hpp:46:69: error: ‘nvinfer1::IIfConditional’ has not been declared
onnx2trt::Status addIfOutputLayers(IImporterContext* ctx, nvinfer1::IIfConditional* conditional,
^~~~~~~~~~~~~~
CMakeFiles/nvonnxparser_static.dir/build.make:114: recipe for target ‘CMakeFiles/nvonnxparser_static.dir/onnxErrorRecorder.cpp.o’ failed
make[2]: *** [CMakeFiles/nvonnxparser_static.dir/onnxErrorRecorder.cpp.o] Error 1
[ 26%] Building CXX object CMakeFiles/nvonnxparser.dir/builtin_op_importers.cpp.o
In file included from /home/nvidia/onnx-tensorrt/ModelImporter.hpp:7:0,
from /home/nvidia/onnx-tensorrt/ModelImporter.cpp:5:
/home/nvidia/onnx-tensorrt/ImporterContext.hpp: In constructor ‘onnx2trt::ErrorRecorderWrapper::ErrorRecorderWrapper(nvinfer1::INetworkDefinition*, nvinfer1::ILogger*)’:
/home/nvidia/onnx-tensorrt/ImporterContext.hpp:26:44: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘getErrorRecorder’
mUserErrorRecorder = mNetwork->getErrorRecorder();
^~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/ImporterContext.hpp:34:27: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘setErrorRecorder’
mNetwork->setErrorRecorder(mOnnxErrorRecorder);
^~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/ImporterContext.hpp: In destructor ‘onnx2trt::ErrorRecorderWrapper::~ErrorRecorderWrapper()’:
/home/nvidia/onnx-tensorrt/ImporterContext.hpp:45:27: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘setErrorRecorder’
mNetwork->setErrorRecorder(mUserErrorRecorder);
^~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp: In function ‘onnx2trt::NodeImportResult onnx2trt::{anonymous}::importConstant(onnx2trt::IImporterContext*, const onnx2trt_onnx::NodeProto&, std::vectoronnx2trt::TensorOrWeights&)’:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:542:25: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘setWeightsName’; did you mean ‘setName’?
ctx->network()->setWeightsName(weights, weights.getName());
^~~~~~~~~~~~~~
setName
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp: In function ‘onnx2trt::NodeImportResult onnx2trt::{anonymous}::importConv(onnx2trt::IImporterContext*, const onnx2trt_onnx::NodeProto&, std::vectoronnx2trt::TensorOrWeights&)’:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:701:21: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘setWeightsName’; did you mean ‘setName’?
ctx->network()->setWeightsName(kernelWeights, inputs.at(1).weights().getName());
^~~~~~~~~~~~~~
setName
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:704:25: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘setWeightsName’; did you mean ‘setName’?
ctx->network()->setWeightsName(bias_weights, inputs.at(2).weights().getName());
^~~~~~~~~~~~~~
setName
[ 27%] Building CXX object CMakeFiles/nvonnxparser.dir/onnx2trt_utils.cpp.o
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp: In function ‘onnx2trt::NodeImportResult onnx2trt::{anonymous}::importConvTranspose(onnx2trt::IImporterContext*, const onnx2trt_onnx::NodeProto&, std::vectoronnx2trt::TensorOrWeights&)’:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:890:25: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘setWeightsName’; did you mean ‘setName’?
ctx->network()->setWeightsName(kernelWeights, inputs.at(1).weights().getName());
^~~~~~~~~~~~~~
setName
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:942:50: error: ‘kFILL’ is not a member of ‘nvinfer1::SliceMode’
sliceLayer->setMode(nvinfer1::SliceMode::kFILL);
^~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:961:25: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘setWeightsName’; did you mean ‘setName’?
ctx->network()->setWeightsName(biasWeights, inputs.at(2).weights().getName());
^~~~~~~~~~~~~~
setName
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp: In lambda function:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1129:17: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘setWeightsName’; did you mean ‘setName’?
network.setWeightsName(weights, weights.getName());
^~~~~~~~~~~~~~
setName
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp: In function ‘onnx2trt::NodeImportResult onnx2trt::{anonymous}::QuantDequantLinearHelper(onnx2trt::IImporterContext*, const onnx2trt_onnx::NodeProto&, std::vectoronnx2trt::TensorOrWeights&, bool)’:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1216:19: error: ‘IDequantizeLayer’ is not a member of ‘nvinfer1’
nvinfer1::IDequantizeLayer* dq = ctx->network()->addDequantize(dataInput, *scaleInput);
^~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1216:19: note: suggested alternative: ‘IResizeLayer’
nvinfer1::IDequantizeLayer* dq = ctx->network()->addDequantize(dataInput, *scaleInput);
^~~~~~~~~~~~~~~~
IResizeLayer
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1216:37: error: ‘dq’ was not declared in this scope
nvinfer1::IDequantizeLayer* dq = ctx->network()->addDequantize(dataInput, scaleInput);
^~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1216:58: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘addDequantize’; did you mean ‘addResize’?
nvinfer1::IDequantizeLayer
dq = ctx->network()->addDequantize(dataInput, *scaleInput);
^~~~~~~~~~~~~
addResize
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1225:19: error: ‘IQuantizeLayer’ is not a member of ‘nvinfer1’
nvinfer1::IQuantizeLayer* q = ctx->network()->addQuantize(dataInput, *scaleInput);
^~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1225:19: note: suggested alternative: ‘IResizeLayer’
nvinfer1::IQuantizeLayer* q = ctx->network()->addQuantize(dataInput, *scaleInput);
^~~~~~~~~~~~~~
IResizeLayer
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1225:35: error: ‘q’ was not declared in this scope
nvinfer1::IQuantizeLayer* q = ctx->network()->addQuantize(dataInput, scaleInput);
^
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1225:55: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘addQuantize’; did you mean ‘addIdentity’?
nvinfer1::IQuantizeLayer
q = ctx->network()->addQuantize(dataInput, *scaleInput);
^~~~~~~~~~~
addIdentity
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp: In function ‘onnx2trt::NodeImportResult onnx2trt::{anonymous}::importEinsum(onnx2trt::IImporterContext*, const onnx2trt_onnx::NodeProto&, std::vectoronnx2trt::TensorOrWeights&)’:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1333:15: error: ‘IEinsumLayer’ is not a member of ‘nvinfer1’
nvinfer1::IEinsumLayer* einsumLayer = ctx->network()->addEinsum(inputTensors.data(), nbInputs, equation.c_str());
^~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1333:15: note: suggested alternative: ‘IFillLayer’
nvinfer1::IEinsumLayer* einsumLayer = ctx->network()->addEinsum(inputTensors.data(), nbInputs, equation.c_str());
^~~~~~~~~~~~
IFillLayer
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1333:29: error: ‘einsumLayer’ was not declared in this scope
nvinfer1::IEinsumLayer* einsumLayer = ctx->network()->addEinsum(inputTensors.data(), nbInputs, equation.c_str());
^~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1333:59: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘addEinsum’; did you mean ‘addInput’?
nvinfer1::IEinsumLayer* einsumLayer = ctx->network()->addEinsum(inputTensors.data(), nbInputs, equation.c_str());
^~~~~~~~~
addInput
/home/nvidia/onnx-tensorrt/ModelImporter.cpp: In function ‘onnx2trt::Status onnx2trt::assertDimsWithSameNameAreEqual(onnx2trt::ImporterContext*, std::vector<{anonymous}::NamedDimension>&)’:
/home/nvidia/onnx-tensorrt/ModelImporter.cpp:313:51: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘addAssertion’; did you mean ‘addActivation’?
auto* assertion = ctx->network()->addAssertion(*equal->getOutput(0), message.str().c_str());
^~~~~~~~~~~~
addActivation
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp: In function ‘onnx2trt::NodeImportResult onnx2trt::{anonymous}::importGatherElements(onnx2trt::IImporterContext*, const onnx2trt_onnx::NodeProto&, std::vectoronnx2trt::TensorOrWeights&)’:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1495:35: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘addGatherV2’; did you mean ‘addGather’?
auto* layer = ctx->network()->addGatherV2(data, indices, nvinfer1::GatherMode::kELEMENT);
^~~~~~~~~~~
addGather
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1495:72: error: ‘nvinfer1::GatherMode’ has not been declared
auto* layer = ctx->network()->addGatherV2(data, indices, nvinfer1::GatherMode::kELEMENT);
^~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp: In function ‘onnx2trt::NodeImportResult onnx2trt::{anonymous}::importGatherND(onnx2trt::IImporterContext*, const onnx2trt_onnx::NodeProto&, std::vectoronnx2trt::TensorOrWeights&)’:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1512:35: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘addGatherV2’; did you mean ‘addGather’?
auto* layer = ctx->network()->addGatherV2(data, indices, nvinfer1::GatherMode::kND);
^~~~~~~~~~~
addGather
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1512:72: error: ‘nvinfer1::GatherMode’ has not been declared
auto* layer = ctx->network()->addGatherV2(data, indices, nvinfer1::GatherMode::kND);
^~~~~~~~~~
/home/nvidia/onnx-tensorrt/onnx2trt_utils.cpp:6:10: fatal error: NvInferSafeRuntime.h: 没有那个文件或目录
#include “NvInferSafeRuntime.h”
^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp: In function ‘onnx2trt::NodeImportResult onnx2trt::{anonymous}::importGemm(onnx2trt::IImporterContext*, const onnx2trt_onnx::NodeProto&, std::vectoronnx2trt::TensorOrWeights&)’:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1556:25: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘setWeightsName’; did you mean ‘setName’?
ctx->network()->setWeightsName(weights, weights.getName());
^~~~~~~~~~~~~~
setName
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1559:29: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘setWeightsName’; did you mean ‘setName’?
ctx->network()->setWeightsName(biases, inputs.at(2).weights().getName());
^~~~~~~~~~~~~~
setName
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1584:25: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘setWeightsName’; did you mean ‘setName’?
ctx->network()->setWeightsName(weights, weights.getName());
^~~~~~~~~~~~~~
setName
CMakeFiles/nvonnxparser.dir/build.make:101: recipe for target ‘CMakeFiles/nvonnxparser.dir/onnx2trt_utils.cpp.o’ failed
make[2]: *** [CMakeFiles/nvonnxparser.dir/onnx2trt_utils.cpp.o] Error 1
make[2]: *** 正在等待未完成的任务…
[ 28%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/common/interned_strings.cc.o
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp: In function ‘onnx2trt::NodeImportResult onnx2trt::{anonymous}::importIf(onnx2trt::IImporterContext*, const onnx2trt_onnx::NodeProto&, std::vectoronnx2trt::TensorOrWeights&)’:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:2155:40: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘addIfConditional’; did you mean ‘addConvolution’?
auto conditional = ctx->network()->addIfConditional();
^~~~~~~~~~~~~~~~
addConvolution
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:2171:65: error: ‘IIfConditionalInputLayer’ is not a member of ‘nvinfer1’
using InputsMap = std::unordered_map<std::string, nvinfer1::IIfConditionalInputLayer*>;
^~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:2171:65: note: suggested alternative: ‘IConstantLayer’
using InputsMap = std::unordered_map<std::string, nvinfer1::IIfConditionalInputLayer*>;
^~~~~~~~~~~~~~~~~~~~~~~~
IConstantLayer
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:2171:65: error: ‘IIfConditionalInputLayer’ is not a member of ‘nvinfer1’
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:2171:65: note: suggested alternative: ‘IConstantLayer’
using InputsMap = std::unordered_map<std::string, nvinfer1::IIfConditionalInputLayer*>;
^~~~~~~~~~~~~~~~~~~~~~~~
IConstantLayer
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:2171:90: error: template argument 2 is invalid
using InputsMap = std::unordered_map<std::string, nvinfer1::IIfConditionalInputLayer*>;
^
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:2171:90: error: template argument 5 is invalid
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:2172:5: error: ‘InputsMap’ was not declared in this scope
InputsMap inputsMap;
^~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:2172:5: note: suggested alternative: ‘inputs’
InputsMap inputsMap;
^~~~~~~~~
inputs
In file included from /home/nvidia/onnx-tensorrt/onnx2trt.hpp:9:0,
from /home/nvidia/onnx-tensorrt/builtin_op_importers.hpp:7,
from /home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:2173:46: error: ‘inputsMap’ was not declared in this scope
CHECK(addIfInputLayers(ctx, conditional, inputsMap, thenGraph, thenLayers));
^
/home/nvidia/onnx-tensorrt/Status.hpp:75:25: note: in definition of macro ‘CHECK’
Status status = call;
^~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:2173:46: note: suggested alternative: ‘inputs’
CHECK(addIfInputLayers(ctx, conditional, inputsMap, thenGraph, thenLayers));
^
/home/nvidia/onnx-tensorrt/Status.hpp:75:25: note: in definition of macro ‘CHECK’
Status status = call;
^~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:2174:46: error: ‘inputsMap’ was not declared in this scope
CHECK(addIfInputLayers(ctx, conditional, inputsMap, elseGraph, elseLayers));
^
/home/nvidia/onnx-tensorrt/Status.hpp:75:25: note: in definition of macro ‘CHECK’
Status status = call;
^~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:2174:46: note: suggested alternative: ‘inputs’
CHECK(addIfInputLayers(ctx, conditional, inputsMap, elseGraph, elseLayers));
^
/home/nvidia/onnx-tensorrt/Status.hpp:75:25: note: in definition of macro ‘CHECK’
Status status = call;
^~~~
/home/nvidia/onnx-tensorrt/ModelImporter.cpp: In function ‘onnx2trt::Status onnx2trt::assertDimsWithSameNameAreEqual(onnx2trt::ImporterContext*, std::vector<{anonymous}::NamedDimension>&)’:
/home/nvidia/onnx-tensorrt/ModelImporter.cpp:313:51: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘addAssertion’; did you mean ‘addActivation’?
auto* assertion = ctx->network()->addAssertion(*equal->getOutput(0), message.str().c_str());
^~~~~~~~~~~~
addActivation
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp: In function ‘onnx2trt::NodeImportResult onnx2trt::{anonymous}::importMatMul(onnx2trt::IImporterContext*, const onnx2trt_onnx::NodeProto&, std::vectoronnx2trt::TensorOrWeights&)’:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:2883:25: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘setWeightsName’; did you mean ‘setName’?
ctx->network()->setWeightsName(weights, inputs.at(1).weights().getName());
^~~~~~~~~~~~~~
setName
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp: In function ‘onnx2trt::NodeImportResult onnx2trt::{anonymous}::importPad(onnx2trt::IImporterContext*, const onnx2trt_onnx::NodeProto&, std::vectoronnx2trt::TensorOrWeights&)’:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3179:45: error: ‘kFILL’ is not a member of ‘nvinfer1::SliceMode’
layer->setMode(nvinfer1::SliceMode::kFILL);
^~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3211:45: error: ‘kREFLECT’ is not a member of ‘nvinfer1::SliceMode’
layer->setMode(nvinfer1::SliceMode::kREFLECT);
^~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3215:45: error: ‘kCLAMP’ is not a member of ‘nvinfer1::SliceMode’
layer->setMode(nvinfer1::SliceMode::kCLAMP);
^~~~~~
CMakeFiles/nvonnxparser_static.dir/build.make:62: recipe for target ‘CMakeFiles/nvonnxparser_static.dir/NvOnnxParser.cpp.o’ failed
make[2]: *** [CMakeFiles/nvonnxparser_static.dir/NvOnnxParser.cpp.o] Error 1
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp: In function ‘onnx2trt::NodeImportResult onnx2trt::{anonymous}::importSign(onnx2trt::IImporterContext*, const onnx2trt_onnx::NodeProto&, std::vectoronnx2trt::TensorOrWeights&)’:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3484:75: error: ‘kSIGN’ is not a member of ‘nvinfer1::UnaryOperation’
return unaryHelper(ctx, node, inputs.at(0), nvinfer1::UnaryOperation::kSIGN);
^~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp: In function ‘onnx2trt::NodeImportResult onnx2trt::{anonymous}::importRound(onnx2trt::IImporterContext*, const onnx2trt_onnx::NodeProto&, std::vectoronnx2trt::TensorOrWeights&)’:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3489:75: error: ‘kROUND’ is not a member of ‘nvinfer1::UnaryOperation’
return unaryHelper(ctx, node, inputs.at(0), nvinfer1::UnaryOperation::kROUND);
^~~~~~
[ 29%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/common/ir_pb_converter.cc.o
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp: In function ‘onnx2trt::NodeImportResult onnx2trt::{anonymous}::importResize(onnx2trt::IImporterContext*, const onnx2trt_onnx::NodeProto&, std::vectoronnx2trt::TensorOrWeights&)’:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3511:12: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setSelectorForSinglePixel’
layer->setSelectorForSinglePixel(nvinfer1::ResizeSelector::kFORMULA);
^~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3511:48: error: ‘nvinfer1::ResizeSelector’ has not been declared
layer->setSelectorForSinglePixel(nvinfer1::ResizeSelector::kFORMULA);
^~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3512:12: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setNearestRounding’
layer->setNearestRounding(nvinfer1::ResizeRoundMode::kHALF_DOWN);
^~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3512:41: error: ‘nvinfer1::ResizeRoundMode’ has not been declared
layer->setNearestRounding(nvinfer1::ResizeRoundMode::kHALF_DOWN);
^~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3539:20: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setCoordinateTransformation’
layer->setCoordinateTransformation(nvinfer1::ResizeCoordinateTransformation::kALIGN_CORNERS);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3539:58: error: ‘nvinfer1::ResizeCoordinateTransformation’ has not been declared
layer->setCoordinateTransformation(nvinfer1::ResizeCoordinateTransformation::kALIGN_CORNERS);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3543:20: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setNearestRounding’
layer->setNearestRounding(nvinfer1::ResizeRoundMode::kCEIL);
^~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3543:49: error: ‘nvinfer1::ResizeRoundMode’ has not been declared
layer->setNearestRounding(nvinfer1::ResizeRoundMode::kCEIL);
^~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3544:20: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setCoordinateTransformation’
layer->setCoordinateTransformation(nvinfer1::ResizeCoordinateTransformation::kHALF_PIXEL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3544:58: error: ‘nvinfer1::ResizeCoordinateTransformation’ has not been declared
layer->setCoordinateTransformation(nvinfer1::ResizeCoordinateTransformation::kHALF_PIXEL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3548:20: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setSelectorForSinglePixel’
layer->setSelectorForSinglePixel(nvinfer1::ResizeSelector::kUPPER);
^~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3548:56: error: ‘nvinfer1::ResizeSelector’ has not been declared
layer->setSelectorForSinglePixel(nvinfer1::ResizeSelector::kUPPER);
^~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3549:20: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setCoordinateTransformation’
layer->setCoordinateTransformation(nvinfer1::ResizeCoordinateTransformation::kHALF_PIXEL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3549:58: error: ‘nvinfer1::ResizeCoordinateTransformation’ has not been declared
layer->setCoordinateTransformation(nvinfer1::ResizeCoordinateTransformation::kHALF_PIXEL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3553:20: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setCoordinateTransformation’
layer->setCoordinateTransformation(nvinfer1::ResizeCoordinateTransformation::kHALF_PIXEL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3553:58: error: ‘nvinfer1::ResizeCoordinateTransformation’ has not been declared
layer->setCoordinateTransformation(nvinfer1::ResizeCoordinateTransformation::kHALF_PIXEL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3557:20: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setCoordinateTransformation’
layer->setCoordinateTransformation(nvinfer1::ResizeCoordinateTransformation::kASYMMETRIC);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3557:58: error: ‘nvinfer1::ResizeCoordinateTransformation’ has not been declared
layer->setCoordinateTransformation(nvinfer1::ResizeCoordinateTransformation::kASYMMETRIC);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3571:24: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setNearestRounding’
layer->setNearestRounding(nvinfer1::ResizeRoundMode::kFLOOR);
^~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3571:53: error: ‘nvinfer1::ResizeRoundMode’ has not been declared
layer->setNearestRounding(nvinfer1::ResizeRoundMode::kFLOOR);
^~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3575:24: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setNearestRounding’
layer->setNearestRounding(nvinfer1::ResizeRoundMode::kCEIL);
^~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3575:53: error: ‘nvinfer1::ResizeRoundMode’ has not been declared
layer->setNearestRounding(nvinfer1::ResizeRoundMode::kCEIL);
^~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3579:24: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setNearestRounding’
layer->setNearestRounding(nvinfer1::ResizeRoundMode::kHALF_DOWN);
^~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3579:53: error: ‘nvinfer1::ResizeRoundMode’ has not been declared
layer->setNearestRounding(nvinfer1::ResizeRoundMode::kHALF_DOWN);
^~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3583:24: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setNearestRounding’
layer->setNearestRounding(nvinfer1::ResizeRoundMode::kHALF_UP);
^~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3583:53: error: ‘nvinfer1::ResizeRoundMode’ has not been declared
layer->setNearestRounding(nvinfer1::ResizeRoundMode::kHALF_UP);
^~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3599:16: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setCoordinateTransformation’
layer->setCoordinateTransformation(nvinfer1::ResizeCoordinateTransformation::kASYMMETRIC);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3599:54: error: ‘nvinfer1::ResizeCoordinateTransformation’ has not been declared
layer->setCoordinateTransformation(nvinfer1::ResizeCoordinateTransformation::kASYMMETRIC);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3602:20: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setNearestRounding’
layer->setNearestRounding(nvinfer1::ResizeRoundMode::kFLOOR);
^~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3602:49: error: ‘nvinfer1::ResizeRoundMode’ has not been declared
layer->setNearestRounding(nvinfer1::ResizeRoundMode::kFLOOR);
^~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp: In function ‘onnx2trt::NodeImportResult onnx2trt::{anonymous}::importScatterND(onnx2trt::IImporterContext*, const onnx2trt_onnx::NodeProto&, std::vectoronnx2trt::TensorOrWeights&)’:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:4070:57: error: ‘nvinfer1::ScatterMode’ has not been declared
return addScatterLayer(ctx, node, inputs, nvinfer1::ScatterMode::kND);
^~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp: In function ‘onnx2trt::NodeImportResult onnx2trt::{anonymous}::importScatterElements(onnx2trt::IImporterContext*, const onnx2trt_onnx::NodeProto&, std::vectoronnx2trt::TensorOrWeights&)’:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:4079:57: error: ‘nvinfer1::ScatterMode’ has not been declared
return addScatterLayer(ctx, node, inputs, nvinfer1::ScatterMode::kELEMENT, axis);
^~~~~~~~~~~
CMakeFiles/nvonnxparser.dir/build.make:62: recipe for target ‘CMakeFiles/nvonnxparser.dir/NvOnnxParser.cpp.o’ failed
make[2]: *** [CMakeFiles/nvonnxparser.dir/NvOnnxParser.cpp.o] Error 1
[ 31%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/common/model_helpers.cc.o
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp: In function ‘onnx2trt::NodeImportResult onnx2trt::{anonymous}::importUpsample(onnx2trt::IImporterContext*, const onnx2trt_onnx::NodeProto&, std::vectoronnx2trt::TensorOrWeights&)’:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:4693:12: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setSelectorForSinglePixel’
layer->setSelectorForSinglePixel(nvinfer1::ResizeSelector::kFORMULA);
^~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:4693:48: error: ‘nvinfer1::ResizeSelector’ has not been declared
layer->setSelectorForSinglePixel(nvinfer1::ResizeSelector::kFORMULA);
^~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:4694:12: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setNearestRounding’
layer->setNearestRounding(nvinfer1::ResizeRoundMode::kFLOOR);
^~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:4694:41: error: ‘nvinfer1::ResizeRoundMode’ has not been declared
layer->setNearestRounding(nvinfer1::ResizeRoundMode::kFLOOR);
^~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:4695:12: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setCoordinateTransformation’
layer->setCoordinateTransformation(nvinfer1::ResizeCoordinateTransformation::kASYMMETRIC);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:4695:50: error: ‘nvinfer1::ResizeCoordinateTransformation’ has not been declared
layer->setCoordinateTransformation(nvinfer1::ResizeCoordinateTransformation::kASYMMETRIC);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp: In function ‘onnx2trt::NodeImportResult onnx2trt::{anonymous}::importTRT_Resize(onnx2trt::IImporterContext*, const onnx2trt_onnx::NodeProto&, std::vectoronnx2trt::TensorOrWeights&)’:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5266:53: error: ‘ResizeCoordinateTransformation’ is not a member of ‘nvinfer1’
const auto transformation = attrs.getnvinfer1::ResizeCoordinateTransformation(“coordTransform”);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5266:53: error: ‘ResizeCoordinateTransformation’ is not a member of ‘nvinfer1’
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5266:101: error: no matching function for call to ‘OnnxAttrs::get< >(const char [15])’
const auto transformation = attrs.getnvinfer1::ResizeCoordinateTransformation(“coordTransform”);
^
In file included from /home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:11:0:
/home/nvidia/onnx-tensorrt/OnnxAttrs.hpp:53:7: note: candidate: template T OnnxAttrs::get(const string&) const
T get(const std::string& key) const;
^~~
/home/nvidia/onnx-tensorrt/OnnxAttrs.hpp:53:7: note: template argument deduction/substitution failed:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5266:101: error: template argument 1 is invalid
const auto transformation = attrs.getnvinfer1::ResizeCoordinateTransformation(“coordTransform”);
^
In file included from /home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:11:0:
/home/nvidia/onnx-tensorrt/OnnxAttrs.hpp:56:7: note: candidate: template T OnnxAttrs::get(const string&, const T&) const
T get(const std::string& key, T const& default_value) const
^~~
/home/nvidia/onnx-tensorrt/OnnxAttrs.hpp:56:7: note: template argument deduction/substitution failed:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5266:101: error: template argument 1 is invalid
const auto transformation = attrs.getnvinfer1::ResizeCoordinateTransformation(“coordTransform”);
^
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5267:47: error: ‘ResizeSelector’ is not a member of ‘nvinfer1’
const auto selector = attrs.getnvinfer1::ResizeSelector(“resizeSelector”);
^~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5267:47: note: suggested alternative: ‘IResizeLayer’
const auto selector = attrs.getnvinfer1::ResizeSelector(“resizeSelector”);
^~~~~~~~~~~~~~
IResizeLayer
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5267:47: error: ‘ResizeSelector’ is not a member of ‘nvinfer1’
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5267:47: note: suggested alternative: ‘IResizeLayer’
const auto selector = attrs.getnvinfer1::ResizeSelector(“resizeSelector”);
^~~~~~~~~~~~~~
IResizeLayer
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5267:79: error: no matching function for call to ‘OnnxAttrs::get< >(const char [15])’
const auto selector = attrs.getnvinfer1::ResizeSelector(“resizeSelector”);
^
In file included from /home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:11:0:
/home/nvidia/onnx-tensorrt/OnnxAttrs.hpp:53:7: note: candidate: template T OnnxAttrs::get(const string&) const
T get(const std::string& key) const;
^~~
/home/nvidia/onnx-tensorrt/OnnxAttrs.hpp:53:7: note: template argument deduction/substitution failed:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5267:79: error: template argument 1 is invalid
const auto selector = attrs.getnvinfer1::ResizeSelector(“resizeSelector”);
^
In file included from /home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:11:0:
/home/nvidia/onnx-tensorrt/OnnxAttrs.hpp:56:7: note: candidate: template T OnnxAttrs::get(const string&, const T&) const
T get(const std::string& key, T const& default_value) const
^~~
/home/nvidia/onnx-tensorrt/OnnxAttrs.hpp:56:7: note: template argument deduction/substitution failed:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5267:79: error: template argument 1 is invalid
const auto selector = attrs.getnvinfer1::ResizeSelector(“resizeSelector”);
^
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5268:48: error: ‘ResizeRoundMode’ is not a member of ‘nvinfer1’
const auto roundMode = attrs.getnvinfer1::ResizeRoundMode(“round_mode”);
^~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5268:48: note: suggested alternative: ‘ResizeMode’
const auto roundMode = attrs.getnvinfer1::ResizeRoundMode(“round_mode”);
^~~~~~~~~~~~~~~
ResizeMode
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5268:48: error: ‘ResizeRoundMode’ is not a member of ‘nvinfer1’
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5268:48: note: suggested alternative: ‘ResizeMode’
const auto roundMode = attrs.getnvinfer1::ResizeRoundMode(“round_mode”);
^~~~~~~~~~~~~~~
ResizeMode
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5268:77: error: no matching function for call to ‘OnnxAttrs::get< >(const char [11])’
const auto roundMode = attrs.getnvinfer1::ResizeRoundMode(“round_mode”);
^
In file included from /home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:11:0:
/home/nvidia/onnx-tensorrt/OnnxAttrs.hpp:53:7: note: candidate: template T OnnxAttrs::get(const string&) const
T get(const std::string& key) const;
^~~
/home/nvidia/onnx-tensorrt/OnnxAttrs.hpp:53:7: note: template argument deduction/substitution failed:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5268:77: error: template argument 1 is invalid
const auto roundMode = attrs.getnvinfer1::ResizeRoundMode(“round_mode”);
^
In file included from /home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:11:0:
/home/nvidia/onnx-tensorrt/OnnxAttrs.hpp:56:7: note: candidate: template T OnnxAttrs::get(const string&, const T&) const
T get(const std::string& key, T const& default_value) const
^~~
/home/nvidia/onnx-tensorrt/OnnxAttrs.hpp:56:7: note: template argument deduction/substitution failed:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5268:77: error: template argument 1 is invalid
const auto roundMode = attrs.getnvinfer1::ResizeRoundMode(“round_mode”);
^
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5271:12: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setSelectorForSinglePixel’
layer->setSelectorForSinglePixel(selector);
^~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5272:12: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setCoordinateTransformation’
layer->setCoordinateTransformation(transformation);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5273:12: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setNearestRounding’
layer->setNearestRounding(roundMode);
^~~~~~~~~~~~~~~~~~
In file included from /home/nvidia/onnx-tensorrt/ImporterContext.hpp:8:0,
from /home/nvidia/onnx-tensorrt/ConditionalHelpers.hpp:10,
from /home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:6:
/home/nvidia/onnx-tensorrt/onnx2trt_utils.hpp:377:117: error: ‘nvinfer1::ScatterMode’ has not been declared
IImporterContext* ctx, const ::ONNX_NAMESPACE::NodeProto& node, std::vector& inputs, nvinfer1::ScatterMode mode, int32_t axis = 0);
^~~~~~~~~~~
In file included from /home/nvidia/onnx-tensorrt/ConditionalHelpers.hpp:10:0,
from /home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:6:
/home/nvidia/onnx-tensorrt/ImporterContext.hpp: In constructor ‘onnx2trt::ErrorRecorderWrapper::ErrorRecorderWrapper(nvinfer1::INetworkDefinition*, nvinfer1::ILogger*)’:
/home/nvidia/onnx-tensorrt/ImporterContext.hpp:26:44: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘getErrorRecorder’
mUserErrorRecorder = mNetwork->getErrorRecorder();
^~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/ImporterContext.hpp:34:27: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘setErrorRecorder’
mNetwork->setErrorRecorder(mOnnxErrorRecorder);
^~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/ImporterContext.hpp: In destructor ‘onnx2trt::ErrorRecorderWrapper::~ErrorRecorderWrapper()’:
/home/nvidia/onnx-tensorrt/ImporterContext.hpp:45:27: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘setErrorRecorder’
mNetwork->setErrorRecorder(mUserErrorRecorder);
^~~~~~~~~~~~~~~~
CMakeFiles/nvonnxparser_static.dir/build.make:75: recipe for target ‘CMakeFiles/nvonnxparser_static.dir/ModelImporter.cpp.o’ failed
make[2]: *** [CMakeFiles/nvonnxparser_static.dir/ModelImporter.cpp.o] Error 1
[ 32%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/common/status.cc.o
In file included from /home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:6:0:
/home/nvidia/onnx-tensorrt/ConditionalHelpers.hpp: At global scope:
/home/nvidia/onnx-tensorrt/ConditionalHelpers.hpp:39:61: error: ‘IIfConditionalInputLayer’ is not a member of ‘nvinfer1’
using InputsMap = std::unordered_map<std::string, nvinfer1::IIfConditionalInputLayer*>;
^~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/ConditionalHelpers.hpp:39:61: note: suggested alternative: ‘IConstantLayer’
using InputsMap = std::unordered_map<std::string, nvinfer1::IIfConditionalInputLayer*>;
^~~~~~~~~~~~~~~~~~~~~~~~
IConstantLayer
/home/nvidia/onnx-tensorrt/ConditionalHelpers.hpp:39:61: error: ‘IIfConditionalInputLayer’ is not a member of ‘nvinfer1’
/home/nvidia/onnx-tensorrt/ConditionalHelpers.hpp:39:61: note: suggested alternative: ‘IConstantLayer’
using InputsMap = std::unordered_map<std::string, nvinfer1::IIfConditionalInputLayer*>;
^~~~~~~~~~~~~~~~~~~~~~~~
IConstantLayer
/home/nvidia/onnx-tensorrt/ConditionalHelpers.hpp:39:86: error: template argument 2 is invalid
using InputsMap = std::unordered_map<std::string, nvinfer1::IIfConditionalInputLayer*>;
^
/home/nvidia/onnx-tensorrt/ConditionalHelpers.hpp:39:86: error: template argument 5 is invalid
/home/nvidia/onnx-tensorrt/ConditionalHelpers.hpp:42:68: error: ‘nvinfer1::IIfConditional’ has not been declared
onnx2trt::Status addIfInputLayers(IImporterContext* ctx, nvinfer1::IIfConditional* conditional, InputsMap& inputsMap,
^~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/ConditionalHelpers.hpp:42:97: error: ‘InputsMap’ has not been declared
onnx2trt::Status addIfInputLayers(IImporterContext* ctx, nvinfer1::IIfConditional* conditional, InputsMap& inputsMap,
^~~~~~~~~
/home/nvidia/onnx-tensorrt/ConditionalHelpers.hpp:46:69: error: ‘nvinfer1::IIfConditional’ has not been declared
onnx2trt::Status addIfOutputLayers(IImporterContext* ctx, nvinfer1::IIfConditional* conditional,
^~~~~~~~~~~~~~
CMakeFiles/nvonnxparser.dir/build.make:75: recipe for target ‘CMakeFiles/nvonnxparser.dir/ModelImporter.cpp.o’ failed
make[2]: *** [CMakeFiles/nvonnxparser.dir/ModelImporter.cpp.o] Error 1
[ 33%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/attr_proto_util.cc.o
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp: In function ‘onnx2trt::NodeImportResult onnx2trt::{anonymous}::importConstant(onnx2trt::IImporterContext*, const onnx2trt_onnx::NodeProto&, std::vectoronnx2trt::TensorOrWeights&)’:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:542:25: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘setWeightsName’; did you mean ‘setName’?
ctx->network()->setWeightsName(weights, weights.getName());
^~~~~~~~~~~~~~
setName
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp: In function ‘onnx2trt::NodeImportResult onnx2trt::{anonymous}::importConv(onnx2trt::IImporterContext*, const onnx2trt_onnx::NodeProto&, std::vectoronnx2trt::TensorOrWeights&)’:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:701:21: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘setWeightsName’; did you mean ‘setName’?
ctx->network()->setWeightsName(kernelWeights, inputs.at(1).weights().getName());
^~~~~~~~~~~~~~
setName
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:704:25: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘setWeightsName’; did you mean ‘setName’?
ctx->network()->setWeightsName(bias_weights, inputs.at(2).weights().getName());
^~~~~~~~~~~~~~
setName
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp: In function ‘onnx2trt::NodeImportResult onnx2trt::{anonymous}::importConvTranspose(onnx2trt::IImporterContext*, const onnx2trt_onnx::NodeProto&, std::vectoronnx2trt::TensorOrWeights&)’:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:890:25: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘setWeightsName’; did you mean ‘setName’?
ctx->network()->setWeightsName(kernelWeights, inputs.at(1).weights().getName());
^~~~~~~~~~~~~~
setName
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:942:50: error: ‘kFILL’ is not a member of ‘nvinfer1::SliceMode’
sliceLayer->setMode(nvinfer1::SliceMode::kFILL);
^~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:961:25: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘setWeightsName’; did you mean ‘setName’?
ctx->network()->setWeightsName(biasWeights, inputs.at(2).weights().getName());
^~~~~~~~~~~~~~
setName
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp: In lambda function:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1129:17: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘setWeightsName’; did you mean ‘setName’?
network.setWeightsName(weights, weights.getName());
^~~~~~~~~~~~~~
setName
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp: In function ‘onnx2trt::NodeImportResult onnx2trt::{anonymous}::QuantDequantLinearHelper(onnx2trt::IImporterContext*, const onnx2trt_onnx::NodeProto&, std::vectoronnx2trt::TensorOrWeights&, bool)’:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1216:19: error: ‘IDequantizeLayer’ is not a member of ‘nvinfer1’
nvinfer1::IDequantizeLayer* dq = ctx->network()->addDequantize(dataInput, *scaleInput);
^~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1216:19: note: suggested alternative: ‘IResizeLayer’
nvinfer1::IDequantizeLayer* dq = ctx->network()->addDequantize(dataInput, *scaleInput);
^~~~~~~~~~~~~~~~
IResizeLayer
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1216:37: error: ‘dq’ was not declared in this scope
nvinfer1::IDequantizeLayer* dq = ctx->network()->addDequantize(dataInput, scaleInput);
^~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1216:58: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘addDequantize’; did you mean ‘addResize’?
nvinfer1::IDequantizeLayer
dq = ctx->network()->addDequantize(dataInput, *scaleInput);
^~~~~~~~~~~~~
addResize
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1225:19: error: ‘IQuantizeLayer’ is not a member of ‘nvinfer1’
nvinfer1::IQuantizeLayer* q = ctx->network()->addQuantize(dataInput, *scaleInput);
^~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1225:19: note: suggested alternative: ‘IResizeLayer’
nvinfer1::IQuantizeLayer* q = ctx->network()->addQuantize(dataInput, *scaleInput);
^~~~~~~~~~~~~~
IResizeLayer
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1225:35: error: ‘q’ was not declared in this scope
nvinfer1::IQuantizeLayer* q = ctx->network()->addQuantize(dataInput, scaleInput);
^
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1225:55: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘addQuantize’; did you mean ‘addIdentity’?
nvinfer1::IQuantizeLayer
q = ctx->network()->addQuantize(dataInput, *scaleInput);
^~~~~~~~~~~
addIdentity
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp: In function ‘onnx2trt::NodeImportResult onnx2trt::{anonymous}::importEinsum(onnx2trt::IImporterContext*, const onnx2trt_onnx::NodeProto&, std::vectoronnx2trt::TensorOrWeights&)’:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1333:15: error: ‘IEinsumLayer’ is not a member of ‘nvinfer1’
nvinfer1::IEinsumLayer* einsumLayer = ctx->network()->addEinsum(inputTensors.data(), nbInputs, equation.c_str());
^~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1333:15: note: suggested alternative: ‘IFillLayer’
nvinfer1::IEinsumLayer* einsumLayer = ctx->network()->addEinsum(inputTensors.data(), nbInputs, equation.c_str());
^~~~~~~~~~~~
IFillLayer
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1333:29: error: ‘einsumLayer’ was not declared in this scope
nvinfer1::IEinsumLayer* einsumLayer = ctx->network()->addEinsum(inputTensors.data(), nbInputs, equation.c_str());
^~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1333:59: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘addEinsum’; did you mean ‘addInput’?
nvinfer1::IEinsumLayer* einsumLayer = ctx->network()->addEinsum(inputTensors.data(), nbInputs, equation.c_str());
^~~~~~~~~
addInput
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp: In function ‘onnx2trt::NodeImportResult onnx2trt::{anonymous}::importGatherElements(onnx2trt::IImporterContext*, const onnx2trt_onnx::NodeProto&, std::vectoronnx2trt::TensorOrWeights&)’:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1495:35: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘addGatherV2’; did you mean ‘addGather’?
auto* layer = ctx->network()->addGatherV2(data, indices, nvinfer1::GatherMode::kELEMENT);
^~~~~~~~~~~
addGather
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1495:72: error: ‘nvinfer1::GatherMode’ has not been declared
auto* layer = ctx->network()->addGatherV2(data, indices, nvinfer1::GatherMode::kELEMENT);
^~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp: In function ‘onnx2trt::NodeImportResult onnx2trt::{anonymous}::importGatherND(onnx2trt::IImporterContext*, const onnx2trt_onnx::NodeProto&, std::vectoronnx2trt::TensorOrWeights&)’:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1512:35: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘addGatherV2’; did you mean ‘addGather’?
auto* layer = ctx->network()->addGatherV2(data, indices, nvinfer1::GatherMode::kND);
^~~~~~~~~~~
addGather
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1512:72: error: ‘nvinfer1::GatherMode’ has not been declared
auto* layer = ctx->network()->addGatherV2(data, indices, nvinfer1::GatherMode::kND);
^~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp: In function ‘onnx2trt::NodeImportResult onnx2trt::{anonymous}::importGemm(onnx2trt::IImporterContext*, const onnx2trt_onnx::NodeProto&, std::vectoronnx2trt::TensorOrWeights&)’:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1556:25: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘setWeightsName’; did you mean ‘setName’?
ctx->network()->setWeightsName(weights, weights.getName());
^~~~~~~~~~~~~~
setName
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1559:29: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘setWeightsName’; did you mean ‘setName’?
ctx->network()->setWeightsName(biases, inputs.at(2).weights().getName());
^~~~~~~~~~~~~~
setName
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:1584:25: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘setWeightsName’; did you mean ‘setName’?
ctx->network()->setWeightsName(weights, weights.getName());
^~~~~~~~~~~~~~
setName
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp: In function ‘onnx2trt::NodeImportResult onnx2trt::{anonymous}::importIf(onnx2trt::IImporterContext*, const onnx2trt_onnx::NodeProto&, std::vectoronnx2trt::TensorOrWeights&)’:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:2155:40: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘addIfConditional’; did you mean ‘addConvolution’?
auto conditional = ctx->network()->addIfConditional();
^~~~~~~~~~~~~~~~
addConvolution
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:2171:65: error: ‘IIfConditionalInputLayer’ is not a member of ‘nvinfer1’
using InputsMap = std::unordered_map<std::string, nvinfer1::IIfConditionalInputLayer*>;
^~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:2171:65: note: suggested alternative: ‘IConstantLayer’
using InputsMap = std::unordered_map<std::string, nvinfer1::IIfConditionalInputLayer*>;
^~~~~~~~~~~~~~~~~~~~~~~~
IConstantLayer
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:2171:65: error: ‘IIfConditionalInputLayer’ is not a member of ‘nvinfer1’
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:2171:65: note: suggested alternative: ‘IConstantLayer’
using InputsMap = std::unordered_map<std::string, nvinfer1::IIfConditionalInputLayer*>;
^~~~~~~~~~~~~~~~~~~~~~~~
IConstantLayer
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:2171:90: error: template argument 2 is invalid
using InputsMap = std::unordered_map<std::string, nvinfer1::IIfConditionalInputLayer*>;
^
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:2171:90: error: template argument 5 is invalid
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:2172:5: error: ‘InputsMap’ was not declared in this scope
InputsMap inputsMap;
^~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:2172:5: note: suggested alternative: ‘inputs’
InputsMap inputsMap;
^~~~~~~~~
inputs
In file included from /home/nvidia/onnx-tensorrt/onnx2trt.hpp:9:0,
from /home/nvidia/onnx-tensorrt/builtin_op_importers.hpp:7,
from /home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:2173:46: error: ‘inputsMap’ was not declared in this scope
CHECK(addIfInputLayers(ctx, conditional, inputsMap, thenGraph, thenLayers));
^
/home/nvidia/onnx-tensorrt/Status.hpp:75:25: note: in definition of macro ‘CHECK’
Status status = call;
^~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:2173:46: note: suggested alternative: ‘inputs’
CHECK(addIfInputLayers(ctx, conditional, inputsMap, thenGraph, thenLayers));
^
/home/nvidia/onnx-tensorrt/Status.hpp:75:25: note: in definition of macro ‘CHECK’
Status status = call;
^~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:2174:46: error: ‘inputsMap’ was not declared in this scope
CHECK(addIfInputLayers(ctx, conditional, inputsMap, elseGraph, elseLayers));
^
/home/nvidia/onnx-tensorrt/Status.hpp:75:25: note: in definition of macro ‘CHECK’
Status status = call;
^~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:2174:46: note: suggested alternative: ‘inputs’
CHECK(addIfInputLayers(ctx, conditional, inputsMap, elseGraph, elseLayers));
^
/home/nvidia/onnx-tensorrt/Status.hpp:75:25: note: in definition of macro ‘CHECK’
Status status = call;
^~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp: In function ‘onnx2trt::NodeImportResult onnx2trt::{anonymous}::importMatMul(onnx2trt::IImporterContext*, const onnx2trt_onnx::NodeProto&, std::vectoronnx2trt::TensorOrWeights&)’:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:2883:25: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘setWeightsName’; did you mean ‘setName’?
ctx->network()->setWeightsName(weights, inputs.at(1).weights().getName());
^~~~~~~~~~~~~~
setName
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp: In function ‘onnx2trt::NodeImportResult onnx2trt::{anonymous}::importPad(onnx2trt::IImporterContext*, const onnx2trt_onnx::NodeProto&, std::vectoronnx2trt::TensorOrWeights&)’:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3179:45: error: ‘kFILL’ is not a member of ‘nvinfer1::SliceMode’
layer->setMode(nvinfer1::SliceMode::kFILL);
^~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3211:45: error: ‘kREFLECT’ is not a member of ‘nvinfer1::SliceMode’
layer->setMode(nvinfer1::SliceMode::kREFLECT);
^~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3215:45: error: ‘kCLAMP’ is not a member of ‘nvinfer1::SliceMode’
layer->setMode(nvinfer1::SliceMode::kCLAMP);
^~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp: In function ‘onnx2trt::NodeImportResult onnx2trt::{anonymous}::importSign(onnx2trt::IImporterContext*, const onnx2trt_onnx::NodeProto&, std::vectoronnx2trt::TensorOrWeights&)’:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3484:75: error: ‘kSIGN’ is not a member of ‘nvinfer1::UnaryOperation’
return unaryHelper(ctx, node, inputs.at(0), nvinfer1::UnaryOperation::kSIGN);
^~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp: In function ‘onnx2trt::NodeImportResult onnx2trt::{anonymous}::importRound(onnx2trt::IImporterContext*, const onnx2trt_onnx::NodeProto&, std::vectoronnx2trt::TensorOrWeights&)’:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3489:75: error: ‘kROUND’ is not a member of ‘nvinfer1::UnaryOperation’
return unaryHelper(ctx, node, inputs.at(0), nvinfer1::UnaryOperation::kROUND);
^~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp: In function ‘onnx2trt::NodeImportResult onnx2trt::{anonymous}::importResize(onnx2trt::IImporterContext*, const onnx2trt_onnx::NodeProto&, std::vectoronnx2trt::TensorOrWeights&)’:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3511:12: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setSelectorForSinglePixel’
layer->setSelectorForSinglePixel(nvinfer1::ResizeSelector::kFORMULA);
^~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3511:48: error: ‘nvinfer1::ResizeSelector’ has not been declared
layer->setSelectorForSinglePixel(nvinfer1::ResizeSelector::kFORMULA);
^~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3512:12: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setNearestRounding’
layer->setNearestRounding(nvinfer1::ResizeRoundMode::kHALF_DOWN);
^~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3512:41: error: ‘nvinfer1::ResizeRoundMode’ has not been declared
layer->setNearestRounding(nvinfer1::ResizeRoundMode::kHALF_DOWN);
^~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3539:20: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setCoordinateTransformation’
layer->setCoordinateTransformation(nvinfer1::ResizeCoordinateTransformation::kALIGN_CORNERS);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3539:58: error: ‘nvinfer1::ResizeCoordinateTransformation’ has not been declared
layer->setCoordinateTransformation(nvinfer1::ResizeCoordinateTransformation::kALIGN_CORNERS);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3543:20: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setNearestRounding’
layer->setNearestRounding(nvinfer1::ResizeRoundMode::kCEIL);
^~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3543:49: error: ‘nvinfer1::ResizeRoundMode’ has not been declared
layer->setNearestRounding(nvinfer1::ResizeRoundMode::kCEIL);
^~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3544:20: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setCoordinateTransformation’
layer->setCoordinateTransformation(nvinfer1::ResizeCoordinateTransformation::kHALF_PIXEL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3544:58: error: ‘nvinfer1::ResizeCoordinateTransformation’ has not been declared
layer->setCoordinateTransformation(nvinfer1::ResizeCoordinateTransformation::kHALF_PIXEL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3548:20: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setSelectorForSinglePixel’
layer->setSelectorForSinglePixel(nvinfer1::ResizeSelector::kUPPER);
^~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3548:56: error: ‘nvinfer1::ResizeSelector’ has not been declared
layer->setSelectorForSinglePixel(nvinfer1::ResizeSelector::kUPPER);
^~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3549:20: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setCoordinateTransformation’
layer->setCoordinateTransformation(nvinfer1::ResizeCoordinateTransformation::kHALF_PIXEL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3549:58: error: ‘nvinfer1::ResizeCoordinateTransformation’ has not been declared
layer->setCoordinateTransformation(nvinfer1::ResizeCoordinateTransformation::kHALF_PIXEL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3553:20: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setCoordinateTransformation’
layer->setCoordinateTransformation(nvinfer1::ResizeCoordinateTransformation::kHALF_PIXEL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3553:58: error: ‘nvinfer1::ResizeCoordinateTransformation’ has not been declared
layer->setCoordinateTransformation(nvinfer1::ResizeCoordinateTransformation::kHALF_PIXEL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3557:20: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setCoordinateTransformation’
layer->setCoordinateTransformation(nvinfer1::ResizeCoordinateTransformation::kASYMMETRIC);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3557:58: error: ‘nvinfer1::ResizeCoordinateTransformation’ has not been declared
layer->setCoordinateTransformation(nvinfer1::ResizeCoordinateTransformation::kASYMMETRIC);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3571:24: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setNearestRounding’
layer->setNearestRounding(nvinfer1::ResizeRoundMode::kFLOOR);
^~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3571:53: error: ‘nvinfer1::ResizeRoundMode’ has not been declared
layer->setNearestRounding(nvinfer1::ResizeRoundMode::kFLOOR);
^~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3575:24: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setNearestRounding’
layer->setNearestRounding(nvinfer1::ResizeRoundMode::kCEIL);
^~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3575:53: error: ‘nvinfer1::ResizeRoundMode’ has not been declared
layer->setNearestRounding(nvinfer1::ResizeRoundMode::kCEIL);
^~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3579:24: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setNearestRounding’
layer->setNearestRounding(nvinfer1::ResizeRoundMode::kHALF_DOWN);
^~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3579:53: error: ‘nvinfer1::ResizeRoundMode’ has not been declared
layer->setNearestRounding(nvinfer1::ResizeRoundMode::kHALF_DOWN);
^~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3583:24: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setNearestRounding’
layer->setNearestRounding(nvinfer1::ResizeRoundMode::kHALF_UP);
^~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3583:53: error: ‘nvinfer1::ResizeRoundMode’ has not been declared
layer->setNearestRounding(nvinfer1::ResizeRoundMode::kHALF_UP);
^~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3599:16: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setCoordinateTransformation’
layer->setCoordinateTransformation(nvinfer1::ResizeCoordinateTransformation::kASYMMETRIC);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3599:54: error: ‘nvinfer1::ResizeCoordinateTransformation’ has not been declared
layer->setCoordinateTransformation(nvinfer1::ResizeCoordinateTransformation::kASYMMETRIC);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3602:20: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setNearestRounding’
layer->setNearestRounding(nvinfer1::ResizeRoundMode::kFLOOR);
^~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:3602:49: error: ‘nvinfer1::ResizeRoundMode’ has not been declared
layer->setNearestRounding(nvinfer1::ResizeRoundMode::kFLOOR);
^~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp: In function ‘onnx2trt::NodeImportResult onnx2trt::{anonymous}::importScatterND(onnx2trt::IImporterContext*, const onnx2trt_onnx::NodeProto&, std::vectoronnx2trt::TensorOrWeights&)’:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:4070:57: error: ‘nvinfer1::ScatterMode’ has not been declared
return addScatterLayer(ctx, node, inputs, nvinfer1::ScatterMode::kND);
^~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp: In function ‘onnx2trt::NodeImportResult onnx2trt::{anonymous}::importScatterElements(onnx2trt::IImporterContext*, const onnx2trt_onnx::NodeProto&, std::vectoronnx2trt::TensorOrWeights&)’:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:4079:57: error: ‘nvinfer1::ScatterMode’ has not been declared
return addScatterLayer(ctx, node, inputs, nvinfer1::ScatterMode::kELEMENT, axis);
^~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp: In function ‘onnx2trt::NodeImportResult onnx2trt::{anonymous}::importUpsample(onnx2trt::IImporterContext*, const onnx2trt_onnx::NodeProto&, std::vectoronnx2trt::TensorOrWeights&)’:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:4693:12: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setSelectorForSinglePixel’
layer->setSelectorForSinglePixel(nvinfer1::ResizeSelector::kFORMULA);
^~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:4693:48: error: ‘nvinfer1::ResizeSelector’ has not been declared
layer->setSelectorForSinglePixel(nvinfer1::ResizeSelector::kFORMULA);
^~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:4694:12: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setNearestRounding’
layer->setNearestRounding(nvinfer1::ResizeRoundMode::kFLOOR);
^~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:4694:41: error: ‘nvinfer1::ResizeRoundMode’ has not been declared
layer->setNearestRounding(nvinfer1::ResizeRoundMode::kFLOOR);
^~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:4695:12: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setCoordinateTransformation’
layer->setCoordinateTransformation(nvinfer1::ResizeCoordinateTransformation::kASYMMETRIC);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:4695:50: error: ‘nvinfer1::ResizeCoordinateTransformation’ has not been declared
layer->setCoordinateTransformation(nvinfer1::ResizeCoordinateTransformation::kASYMMETRIC);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 34%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/controlflow/defs.cc.o
CMakeFiles/nvonnxparser_static.dir/build.make:88: recipe for target ‘CMakeFiles/nvonnxparser_static.dir/builtin_op_importers.cpp.o’ failed
make[2]: *** [CMakeFiles/nvonnxparser_static.dir/builtin_op_importers.cpp.o] Error 1
CMakeFiles/Makefile2:72: recipe for target ‘CMakeFiles/nvonnxparser_static.dir/all’ failed
make[1]: *** [CMakeFiles/nvonnxparser_static.dir/all] Error 2
make[1]: *** 正在等待未完成的任务…
[ 35%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/controlflow/old.cc.o
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp: In function ‘onnx2trt::NodeImportResult onnx2trt::{anonymous}::importTRT_Resize(onnx2trt::IImporterContext*, const onnx2trt_onnx::NodeProto&, std::vectoronnx2trt::TensorOrWeights&)’:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5266:53: error: ‘ResizeCoordinateTransformation’ is not a member of ‘nvinfer1’
const auto transformation = attrs.getnvinfer1::ResizeCoordinateTransformation(“coordTransform”);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5266:53: error: ‘ResizeCoordinateTransformation’ is not a member of ‘nvinfer1’
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5266:101: error: no matching function for call to ‘OnnxAttrs::get< >(const char [15])’
const auto transformation = attrs.getnvinfer1::ResizeCoordinateTransformation(“coordTransform”);
^
In file included from /home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:11:0:
/home/nvidia/onnx-tensorrt/OnnxAttrs.hpp:53:7: note: candidate: template T OnnxAttrs::get(const string&) const
T get(const std::string& key) const;
^~~
/home/nvidia/onnx-tensorrt/OnnxAttrs.hpp:53:7: note: template argument deduction/substitution failed:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5266:101: error: template argument 1 is invalid
const auto transformation = attrs.getnvinfer1::ResizeCoordinateTransformation(“coordTransform”);
^
In file included from /home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:11:0:
/home/nvidia/onnx-tensorrt/OnnxAttrs.hpp:56:7: note: candidate: template T OnnxAttrs::get(const string&, const T&) const
T get(const std::string& key, T const& default_value) const
^~~
/home/nvidia/onnx-tensorrt/OnnxAttrs.hpp:56:7: note: template argument deduction/substitution failed:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5266:101: error: template argument 1 is invalid
const auto transformation = attrs.getnvinfer1::ResizeCoordinateTransformation(“coordTransform”);
^
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5267:47: error: ‘ResizeSelector’ is not a member of ‘nvinfer1’
const auto selector = attrs.getnvinfer1::ResizeSelector(“resizeSelector”);
^~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5267:47: note: suggested alternative: ‘IResizeLayer’
const auto selector = attrs.getnvinfer1::ResizeSelector(“resizeSelector”);
^~~~~~~~~~~~~~
IResizeLayer
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5267:47: error: ‘ResizeSelector’ is not a member of ‘nvinfer1’
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5267:47: note: suggested alternative: ‘IResizeLayer’
const auto selector = attrs.getnvinfer1::ResizeSelector(“resizeSelector”);
^~~~~~~~~~~~~~
IResizeLayer
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5267:79: error: no matching function for call to ‘OnnxAttrs::get< >(const char [15])’
const auto selector = attrs.getnvinfer1::ResizeSelector(“resizeSelector”);
^
In file included from /home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:11:0:
/home/nvidia/onnx-tensorrt/OnnxAttrs.hpp:53:7: note: candidate: template T OnnxAttrs::get(const string&) const
T get(const std::string& key) const;
^~~
/home/nvidia/onnx-tensorrt/OnnxAttrs.hpp:53:7: note: template argument deduction/substitution failed:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5267:79: error: template argument 1 is invalid
const auto selector = attrs.getnvinfer1::ResizeSelector(“resizeSelector”);
^
In file included from /home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:11:0:
/home/nvidia/onnx-tensorrt/OnnxAttrs.hpp:56:7: note: candidate: template T OnnxAttrs::get(const string&, const T&) const
T get(const std::string& key, T const& default_value) const
^~~
/home/nvidia/onnx-tensorrt/OnnxAttrs.hpp:56:7: note: template argument deduction/substitution failed:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5267:79: error: template argument 1 is invalid
const auto selector = attrs.getnvinfer1::ResizeSelector(“resizeSelector”);
^
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5268:48: error: ‘ResizeRoundMode’ is not a member of ‘nvinfer1’
const auto roundMode = attrs.getnvinfer1::ResizeRoundMode(“round_mode”);
^~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5268:48: note: suggested alternative: ‘ResizeMode’
const auto roundMode = attrs.getnvinfer1::ResizeRoundMode(“round_mode”);
^~~~~~~~~~~~~~~
ResizeMode
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5268:48: error: ‘ResizeRoundMode’ is not a member of ‘nvinfer1’
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5268:48: note: suggested alternative: ‘ResizeMode’
const auto roundMode = attrs.getnvinfer1::ResizeRoundMode(“round_mode”);
^~~~~~~~~~~~~~~
ResizeMode
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5268:77: error: no matching function for call to ‘OnnxAttrs::get< >(const char [11])’
const auto roundMode = attrs.getnvinfer1::ResizeRoundMode(“round_mode”);
^
In file included from /home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:11:0:
/home/nvidia/onnx-tensorrt/OnnxAttrs.hpp:53:7: note: candidate: template T OnnxAttrs::get(const string&) const
T get(const std::string& key) const;
^~~
/home/nvidia/onnx-tensorrt/OnnxAttrs.hpp:53:7: note: template argument deduction/substitution failed:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5268:77: error: template argument 1 is invalid
const auto roundMode = attrs.getnvinfer1::ResizeRoundMode(“round_mode”);
^
In file included from /home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:11:0:
/home/nvidia/onnx-tensorrt/OnnxAttrs.hpp:56:7: note: candidate: template T OnnxAttrs::get(const string&, const T&) const
T get(const std::string& key, T const& default_value) const
^~~
/home/nvidia/onnx-tensorrt/OnnxAttrs.hpp:56:7: note: template argument deduction/substitution failed:
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5268:77: error: template argument 1 is invalid
const auto roundMode = attrs.getnvinfer1::ResizeRoundMode(“round_mode”);
^
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5271:12: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setSelectorForSinglePixel’
layer->setSelectorForSinglePixel(selector);
^~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5272:12: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setCoordinateTransformation’
layer->setCoordinateTransformation(transformation);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/nvidia/onnx-tensorrt/builtin_op_importers.cpp:5273:12: error: ‘class nvinfer1::IResizeLayer’ has no member named ‘setNearestRounding’
layer->setNearestRounding(roundMode);
^~~~~~~~~~~~~~~~~~
[ 36%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/data_type_utils.cc.o
[ 37%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/function.cc.o
[ 39%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/generator/defs.cc.o
CMakeFiles/nvonnxparser.dir/build.make:88: recipe for target ‘CMakeFiles/nvonnxparser.dir/builtin_op_importers.cpp.o’ failed
make[2]: *** [CMakeFiles/nvonnxparser.dir/builtin_op_importers.cpp.o] Error 1
CMakeFiles/Makefile2:109: recipe for target ‘CMakeFiles/nvonnxparser.dir/all’ failed
make[1]: *** [CMakeFiles/nvonnxparser.dir/all] Error 2
[ 40%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/generator/old.cc.o
[ 41%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/logical/defs.cc.o
[ 42%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/logical/old.cc.o
[ 43%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/math/defs.cc.o
[ 44%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/math/old.cc.o
[ 45%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/nn/defs.cc.o
[ 47%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/nn/old.cc.o
[ 48%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/object_detection/defs.cc.o
[ 49%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/object_detection/old.cc.o
[ 50%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/quantization/defs.cc.o
[ 51%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/quantization/old.cc.o
[ 52%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/reduction/defs.cc.o
[ 54%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/reduction/old.cc.o
[ 55%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/rnn/defs.cc.o
[ 57%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/schema.cc.o
[ 57%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/rnn/old.cc.o
[ 58%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/sequence/defs.cc.o
[ 59%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/tensor/defs.cc.o
[ 60%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/tensor/old.cc.o
[ 62%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/tensor/utils.cc.o
[ 63%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/tensor_proto_util.cc.o
[ 64%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/tensor_util.cc.o
[ 65%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/traditionalml/defs.cc.o
[ 66%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/traditionalml/old.cc.o
[ 67%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/training/defs.cc.o
[ 68%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/onnxifi_utils.cc.o
[ 70%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/optimizer/optimize.cc.o
[ 71%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/optimizer/pass.cc.o
[ 72%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/optimizer/pass_manager.cc.o
[ 73%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/optimizer/pass_registry.cc.o
[ 74%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/shape_inference/implementation.cc.o
[ 75%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/version_converter/convert.cc.o
[ 77%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/version_converter/helper.cc.o
[ 78%] Linking CXX static library libonnx.a
[ 78%] Built target onnx
Makefile:151: recipe for target ‘all’ failed
make: *** [all] Error 2

How to solve this problem?
thank you

Environment

TensorRT Version: 7.2.0.14
GPU Type:
Nvidia Driver Version: Nvidia Xavier NX
CUDA Version: 10.2
CUDNN Version: 8.0.0
Operating System + Version: ubuntu 18.04
Python Version (if applicable): 3.6
TensorFlow Version (if applicable):
PyTorch Version (if applicable): 1.6.0
Baremetal or Container (if container which image + tag):

Hi,
Request you to share the ONNX model and the script if not shared already so that we can assist you better.
Alongside you can try few things:
https://docs.nvidia.com/deeplearning/tensorrt/quick-start-guide/index.html#onnx-export

  1. validating your model with the below snippet

check_model.py

import sys
import onnx
filename = yourONNXmodel
model = onnx.load(filename)
onnx.checker.check_model(model).
2) Try running your model with trtexec command.
https://github.com/NVIDIA/TensorRT/tree/master/samples/opensource/trtexec
In case you are still facing issue, request you to share the trtexec “”–verbose"" log for further debugging
Thanks!

I need to convert my onnx model to int8 type tensorrt,I don’t know how to transfer it with trtexe.

Hi,

Are you still facing this issue ?