Fix not actually checking the results.

This commit is contained in:
2018-01-18 12:05:52 +01:00
parent 501fea611f
commit 4dd9141399

View File

@@ -46,6 +46,17 @@ static void loadSimulationData(const Options &options)
dumper->dump(layer);
}
}
const auto optLabels = options.labels();
if (optLabels) {
auto& labels = *optLabels;
for (const auto& result : results) {
auto& last = *result.rbegin();
auto bestIndex = std::distance(last.data(), max_element(last.data(), last.data() + last.numEntries()));
LOG(INFO) << "Got answer: " << labels[bestIndex] << endl;
}
}
}
static void renderLayerName(const LayerData &data);