KellenSunderland commented on issue #16386: WIP: Update ONNX-TRT and TRT to 
version 6
URL: https://github.com/apache/incubator-mxnet/pull/16386#issuecomment-539271907
 
 
   Note to self, current error is an argument mismatch between pass by ref and 
by pointer
   
   ```
   /work/mxnet/src/operator/subgraph/tensorrt/onnx_to_tensorrt.cc:82:86: error: 
cannot convert 'nvinfer1::INetworkDefinition' to 
'nvinfer1::INetworkDefinition*' for argument '1' to 'nvonnxparser::IParser* 
nvonnxparser::{anonymous}::createParser(nvinfer1::INetworkDefinition*, 
nvinfer1::ILogger&)'
      auto trt_parser  = InferObject(nvonnxparser::createParser(*trt_network, 
*trt_logger));
                                                                                
         ^
   /work/mxnet/src/operator/subgraph/tensorrt/onnx_to_tensorrt.cc:119:36: 
warning: 'virtual void nvinfer1::IBuilder::setFp16Mode(bool)' is deprecated 
[-Wdeprecated-declarations]
          trt_builder->setFp16Mode(true);
                                       ^
   In file included from /work/mxnet/3rdparty/onnx-tensorrt/NvOnnxParser.h:26:0,
                    from 
/work/mxnet/src/operator/subgraph/tensorrt/./onnx_to_tensorrt.h:31,
                    from 
/work/mxnet/src/operator/subgraph/tensorrt/onnx_to_tensorrt.cc:29:
   /usr/include/x86_64-linux-gnu/NvInfer.h:5757:33: note: declared here
        TRT_DEPRECATED virtual void setFp16Mode(bool mode) TRTNOEXCEPT = 0;
                                    ^~~~~~~~~~~
   /work/mxnet/src/operator/subgraph/tensorrt/onnx_to_tensorrt.cc:125:54: 
warning: 'virtual void nvinfer1::IBuilder::setMaxWorkspaceSize(std::size_t)' is 
deprecated [-Wdeprecated-declarations]
      trt_builder->setMaxWorkspaceSize(max_workspace_size);
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to