Skip to content

Commit 5da47c1

Browse files
committed
chore: Fix missing return casted tensor
Signed-off-by: Dheeraj Peri <[email protected]>
1 parent 7266cad commit 5da47c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/conversion/converters/converter_util.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ nvinfer1::ITensor* castITensor(ConversionCtx* ctx, nvinfer1::ITensor* tensor, nv
137137
TORCHTRT_CHECK(id_layer, "Unable to create identity layer for ITensor: " << tensor_id.str());
138138
// layer->setOutputType should be used for casting and not manually setting output_tensor->setType()
139139
id_layer->setOutputType(0, dtype);
140-
140+
auto casted_tensor = id_layer->getOutput(0);
141141
LOG_DEBUG(ctx->logger, "Casting ITensor " << tensor_id.str() << " from " << tensor->getType() << " to " << dtype);
142142

143143
std::stringstream ss;

0 commit comments

Comments
 (0)