We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb5c06b commit 8b66d3dCopy full SHA for 8b66d3d
core/conversion/conversionctx/ConversionCtx.cpp
@@ -143,7 +143,7 @@ torch::jit::IValue* ConversionCtx::AssociateValueAndIValue(const torch::jit::Val
143
void ConversionCtx::RecordNewTensor(const torch::jit::Value* value, nvinfer1::ITensor* tensor) {
144
value_tensor_map[value] = tensor;
145
auto ret = known_tensors.insert(tensor);
146
- if (!ret) {
+ if (!ret.second) {
147
LOG_WARNING(
148
"Trying to record the value " << value->debugName() << " with the ITensor " << tensor->getName() << " again.");
149
}
0 commit comments