Skip to content

Commit

Permalink
Merge pull request #38721 from JanFSchulte/OIDNNFix_125X
Browse files Browse the repository at this point in the history
Fix rare crash of the HLT in case the muon OI DNN does not find a good seed strategy
  • Loading branch information
cmsbuild committed Jul 14, 2022
2 parents 857137d + fa02279 commit ac7a17a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RecoMuon/TrackerSeedGenerator/plugins/TSGForOIDNN.cc
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ void TSGForOIDNN::evaluateClassifier(const std::unordered_map<std::string, float
tensorflow::TTypes<float, 1>::Matrix dnn_outputs = out_tensor.matrix<float>();

// 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);
Expand Down

0 comments on commit ac7a17a

Please sign in to comment.