Skip to content

chore: Upgrade TRT version and README #640

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ These are the following dependencies used to verify the testcases. TRTorch can w
- Libtorch 1.9.0 (built with CUDA 11.1)
- CUDA 11.1 (10.2 on Jetson)
- cuDNN 8.2
- TensorRT 8.0.1.6
- TensorRT 8.0.3.4 (TensorRT 8.0.1.6 on Jetson)

## Prebuilt Binaries and Wheel files

Expand Down
6 changes: 3 additions & 3 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ http_archive(
http_archive(
name = "tensorrt",
build_file = "@//third_party/tensorrt/archive:BUILD",
sha256 = "def6a5ee50bed25a68a9c9e22ec671a8f29ee5414bde47c5767bd279e5596f88",
strip_prefix = "TensorRT-8.0.1.6",
sha256 = "3177435024ff4aa5a6dba8c1ed06ab11cc0e1bf3bb712dfa63a43422f41313f3",
strip_prefix = "TensorRT-8.0.3.4",
urls = [
"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",
"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",
],
)

Expand Down
8 changes: 4 additions & 4 deletions core/lowering/passes/module_fallback.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void NotateModuleForFallback(
if (n->kind() == torch::jit::prim::GetAttr) {
auto out_type = unmangle_cls_name(c10::toString(n->output(0)->type()));
if (forced_fallback_modules.find(out_type) != forced_fallback_modules.end()) {
LOG_DEBUG(
LOG_GRAPH(
"Notating module for fallback: " << n->s(c10::attr::name) << " (" << out_type << ") [owner: " << mod_name
<< " (" << cls_name << ")]");
auto uses = n->output(0)->uses();
Expand All @@ -58,7 +58,7 @@ void NotateModuleForFallback(
}

if (changed_mod) {
LOG_DEBUG("Notated graph: " << *g);
LOG_GRAPH("Notated graph: " << *g);
}

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

LOG_DEBUG("After marking operations for torch fallback: " << *g);
LOG_GRAPH("After marking operations for torch fallback: " << *g);
}

} // namespace passes
} // namespace lowering
} // namespace core
} // namespace trtorch
} // namespace trtorch
2 changes: 1 addition & 1 deletion core/lowering/passes/remove_nops.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ struct NOPRemoval {
void run() {
removeNode(graph_->block(), "aten::detach");
torch::jit::EliminateDeadCode(graph_);
LOG_DEBUG("RemoveNOPs - Note: Removing operators that have no meaning in TRT");
LOG_GRAPH("RemoveNOPs - Note: Removing operators that have no meaning in TRT");
LOG_GRAPH("Post aten::detach removal: " << *graph_);
}

Expand Down
2 changes: 1 addition & 1 deletion core/lowering/passes/unpack_var.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void UnpackVar(std::shared_ptr<torch::jit::Graph>& graph) {
torch::jit::SubgraphRewriter var_rewriter;
var_rewriter.RegisterRewritePattern(var_pattern, unpacked_pattern);
var_rewriter.runOnGraph(graph);
LOG_DEBUG("Post unpack var: " << *graph);
LOG_GRAPH("Post unpack var: " << *graph);
}

} // namespace passes
Expand Down