Skip to content

Commit 8b66d3d

Browse files
committed
chore: fix a typo
Signed-off-by: Bo Wang <[email protected]>
1 parent cb5c06b commit 8b66d3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/conversion/conversionctx/ConversionCtx.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ torch::jit::IValue* ConversionCtx::AssociateValueAndIValue(const torch::jit::Val
143143
void ConversionCtx::RecordNewTensor(const torch::jit::Value* value, nvinfer1::ITensor* tensor) {
144144
value_tensor_map[value] = tensor;
145145
auto ret = known_tensors.insert(tensor);
146-
if (!ret) {
146+
if (!ret.second) {
147147
LOG_WARNING(
148148
"Trying to record the value " << value->debugName() << " with the ITensor " << tensor->getName() << " again.");
149149
}

0 commit comments

Comments
 (0)