diff --git a/RecoMuon/TrackerSeedGenerator/plugins/TSGForOIDNN.cc b/RecoMuon/TrackerSeedGenerator/plugins/TSGForOIDNN.cc index e84d64f61d9a6..2c239ef5653ad 100644 --- a/RecoMuon/TrackerSeedGenerator/plugins/TSGForOIDNN.cc +++ b/RecoMuon/TrackerSeedGenerator/plugins/TSGForOIDNN.cc @@ -866,7 +866,7 @@ void TSGForOIDNN::evaluateClassifier(const std::unordered_map::Matrix dnn_outputs = out_tensor.matrix(); // Find output with largest prediction - int imax = -1; + int imax = 0; float out_max = 0; for (long long int i = 0; i < out_tensor.dim_size(1); i++) { float ith_output = dnn_outputs(0, i);