Skip to content

Commit

Permalink
Updating onnxtrt submodule to master branch
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: pytorch#18441

Differential Revision: D14613517

Pulled By: bddppq

fbshipit-source-id: dd20d718db55942df9cce7acd1151d6902bc57ff
  • Loading branch information
kyhchen authored and facebook-github-bot committed Mar 26, 2019
1 parent 654e59f commit bbe110f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
url = https://github.com/onnx/onnx.git
[submodule "third_party/onnx-tensorrt"]
path = third_party/onnx-tensorrt
url = https://github.com/bddppq/onnx-tensorrt
url = https://github.com/onnx/onnx-tensorrt
[submodule "third_party/sleef"]
path = third_party/sleef
url = https://github.com/zdevito/sleef
Expand Down
2 changes: 1 addition & 1 deletion caffe2/contrib/tensorrt/tensorrt_tranformer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ void TensorRTTransformer::Transform(
auto trt_builder = tensorrt::TrtObject(nvinfer1::createInferBuilder(logger));
auto trt_network = tensorrt::TrtObject(trt_builder->createNetwork());
auto importer =
tensorrt::TrtObject(nvonnxparser::createParser(trt_network.get(), logger));
tensorrt::TrtObject(nvonnxparser::createParser(*trt_network, logger));

// function to tell whether TensorRT supports a given C2 op or not
auto supports =
Expand Down
2 changes: 1 addition & 1 deletion caffe2/contrib/tensorrt/trt_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ std::shared_ptr<nvinfer1::ICudaEngine> BuildTrtEngine(
auto trt_builder = TrtObject(nvinfer1::createInferBuilder(*logger));
auto trt_network = TrtObject(trt_builder->createNetwork());
auto trt_parser =
TrtObject(nvonnxparser::createParser(trt_network.get(), *logger));
TrtObject(nvonnxparser::createParser(*trt_network, *logger));
auto status = trt_parser->parse(onnx_model_str.data(), onnx_model_str.size());
if (!status) {
const auto num_errors = trt_parser->getNbErrors();
Expand Down

0 comments on commit bbe110f

Please sign in to comment.