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 dd7cfaf commit 8dc3140Copy full SHA for 8dc3140
core/conversion/converters/Weights.cpp
@@ -81,7 +81,7 @@ Weights::Weights(ConversionCtx* ctx, at::Tensor t) {
81
// Store the data in the conversion context so it remains until building is
82
// complete
83
84
- void* buf;
+ void* buf = nullptr;
85
86
if (dtype_optional.value() == nvinfer1::DataType::kFLOAT) {
87
buf = malloc(t_cpu.numel() * sizeof(float));
0 commit comments