Skip to content

Commit

Permalink
Revert D14613517: [pytorch][PR] Updating onnxtrt submodule to master …
Browse files Browse the repository at this point in the history
…branch

Differential Revision:
D14613517

Original commit changeset: dd20d718db55

fbshipit-source-id: d6267ddfc339d04f182e2de1750a601c8d6bf8c6
  • Loading branch information
Li Yu authored and facebook-github-bot committed Mar 27, 2019
1 parent e912632 commit 66e8c74
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/onnx/onnx-tensorrt
url = https://github.com/bddppq/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, logger));
tensorrt::TrtObject(nvonnxparser::createParser(trt_network.get(), 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, *logger));
TrtObject(nvonnxparser::createParser(trt_network.get(), *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 66e8c74

Please sign in to comment.