Skip to content

Commit a64956e

Browse files
committed
chore: Updates to TRT 8.4 integration
Signed-off-by: Dheeraj Peri <[email protected]>
1 parent fc8f123 commit a64956e

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

WORKSPACE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ http_archive(
8686
http_archive(
8787
name = "tensorrt",
8888
build_file = "@//third_party/tensorrt/archive:BUILD",
89-
sha256 = "826180eaaecdf9a7e76116855b9f1f3400ea9b06e66b06a3f6a0747ba6f863ad",
90-
strip_prefix = "TensorRT-8.2.4.2",
89+
sha256 = "8107861af218694130f170e071f49814fa3e27f1386ce7cb6d807ac05a7fcf0e",
90+
strip_prefix = "TensorRT-8.4.1.5",
9191
urls = [
92-
"https://developer.nvidia.com/compute/machine-learning/tensorrt/secure/8.2.4/tars/tensorrt-8.2.4.2.linux.x86_64-gnu.cuda-11.4.cudnn8.2.tar.gz",
92+
"https://developer.nvidia.com/compute/machine-learning/tensorrt/secure/8.4.1/tars/tensorrt-8.4.1.5.linux.x86_64-gnu.cuda-11.6.cudnn8.4.tar.gz",
9393
],
9494
)
9595

core/conversion/converters/converter_util.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,10 @@ nvinfer1::ITensor* castITensor(ConversionCtx* ctx, nvinfer1::ITensor* tensor, nv
135135

136136
auto id_layer = ctx->net->addIdentity(*tensor);
137137
TORCHTRT_CHECK(id_layer, "Unable to create identity layer for ITensor: " << tensor_id.str());
138-
auto casted_tensor = id_layer->getOutput(0);
139-
casted_tensor->setType(dtype);
138+
// layer->setOutputType should be used for casting and not manually setting output_tensor->setType()
139+
id_layer->setOutputType(0, dtype);
140140

141+
auto casted_tensor = id_layer->getOutput(0);
141142
LOG_DEBUG(ctx->logger, "Casting ITensor " << tensor_id.str() << " from " << tensor->getType() << " to " << dtype);
142143

143144
std::stringstream ss;

0 commit comments

Comments
 (0)