[NFC][MLInliner] remove curly braces for a few sinle-line loops

This commit is contained in:
Mircea Trofin 2020-08-10 09:32:21 -07:00
parent d5c81be3ca
commit 211117b660
1 changed files with 3 additions and 4 deletions

View File

@ -350,17 +350,16 @@ private:
TrainingLogger::TrainingLogger(StringRef LogFileName)
: LogFileName(LogFileName) {
for (size_t I = 0; I < NumberOfFeatures; ++I) {
for (size_t I = 0; I < NumberOfFeatures; ++I)
Features.push_back(InlineFeatures());
}
}
/// Log one inlining event.
void TrainingLogger::logInlineEvent(const InlineEvent &Event,
const MLModelRunner &ModelRunner) {
for (size_t I = 0; I < NumberOfFeatures; ++I) {
for (size_t I = 0; I < NumberOfFeatures; ++I)
Features[I].push_back(ModelRunner.getFeature(I));
}
Decisions.push_back(Event.AdvisedDecision);
Effects.push_back(Event.Effect);
Rewards.push_back(Event.Reward);