Skip to content

Commit 2e5738b

Browse files
authored
Merge pull request #640 from NVIDIA/update_trt
chore: Upgrade TRT version and README
2 parents f7e249b + 0266f41 commit 2e5738b

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ These are the following dependencies used to verify the testcases. TRTorch can w
8181
- Libtorch 1.9.0 (built with CUDA 11.1)
8282
- CUDA 11.1 (10.2 on Jetson)
8383
- cuDNN 8.2
84-
- TensorRT 8.0.1.6
84+
- TensorRT 8.0.3.4 (TensorRT 8.0.1.6 on Jetson)
8585

8686
## Prebuilt Binaries and Wheel files
8787

WORKSPACE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ http_archive(
8080
http_archive(
8181
name = "tensorrt",
8282
build_file = "@//third_party/tensorrt/archive:BUILD",
83-
sha256 = "def6a5ee50bed25a68a9c9e22ec671a8f29ee5414bde47c5767bd279e5596f88",
84-
strip_prefix = "TensorRT-8.0.1.6",
83+
sha256 = "3177435024ff4aa5a6dba8c1ed06ab11cc0e1bf3bb712dfa63a43422f41313f3",
84+
strip_prefix = "TensorRT-8.0.3.4",
8585
urls = [
86-
"https://developer.nvidia.com/compute/machine-learning/tensorrt/secure/8.0.1/tars/tensorrt-8.0.1.6.linux.x86_64-gnu.cuda-11.3.cudnn8.2.tar.gz",
86+
"https://developer.nvidia.com/compute/machine-learning/tensorrt/secure/8.0.3/tars/tensorrt-8.0.3.4.linux.x86_64-gnu.cuda-11.3.cudnn8.2.tar.gz",
8787
],
8888
)
8989

core/lowering/passes/module_fallback.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ void NotateModuleForFallback(
3939
if (n->kind() == torch::jit::prim::GetAttr) {
4040
auto out_type = unmangle_cls_name(c10::toString(n->output(0)->type()));
4141
if (forced_fallback_modules.find(out_type) != forced_fallback_modules.end()) {
42-
LOG_DEBUG(
42+
LOG_GRAPH(
4343
"Notating module for fallback: " << n->s(c10::attr::name) << " (" << out_type << ") [owner: " << mod_name
4444
<< " (" << cls_name << ")]");
4545
auto uses = n->output(0)->uses();
@@ -58,7 +58,7 @@ void NotateModuleForFallback(
5858
}
5959

6060
if (changed_mod) {
61-
LOG_DEBUG("Notated graph: " << *g);
61+
LOG_GRAPH("Notated graph: " << *g);
6262
}
6363

6464
for (const auto sub_mod : mod.named_children()) {
@@ -106,10 +106,10 @@ void MarkNodesForFallback(std::shared_ptr<torch::jit::Graph>& g, bool delete_del
106106
}
107107
}
108108

109-
LOG_DEBUG("After marking operations for torch fallback: " << *g);
109+
LOG_GRAPH("After marking operations for torch fallback: " << *g);
110110
}
111111

112112
} // namespace passes
113113
} // namespace lowering
114114
} // namespace core
115-
} // namespace trtorch
115+
} // namespace trtorch

core/lowering/passes/remove_nops.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ struct NOPRemoval {
2222
void run() {
2323
removeNode(graph_->block(), "aten::detach");
2424
torch::jit::EliminateDeadCode(graph_);
25-
LOG_DEBUG("RemoveNOPs - Note: Removing operators that have no meaning in TRT");
25+
LOG_GRAPH("RemoveNOPs - Note: Removing operators that have no meaning in TRT");
2626
LOG_GRAPH("Post aten::detach removal: " << *graph_);
2727
}
2828

core/lowering/passes/unpack_var.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ void UnpackVar(std::shared_ptr<torch::jit::Graph>& graph) {
4242
torch::jit::SubgraphRewriter var_rewriter;
4343
var_rewriter.RegisterRewritePattern(var_pattern, unpacked_pattern);
4444
var_rewriter.runOnGraph(graph);
45-
LOG_DEBUG("Post unpack var: " << *graph);
45+
LOG_GRAPH("Post unpack var: " << *graph);
4646
}
4747

4848
} // namespace passes

0 commit comments

Comments
 (0)