Fix not actually checking the results.
This commit is contained in:
11
src/main.cpp
11
src/main.cpp
@@ -46,6 +46,17 @@ static void loadSimulationData(const Options &options)
|
|||||||
dumper->dump(layer);
|
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);
|
static void renderLayerName(const LayerData &data);
|
||||||
|
|||||||
Reference in New Issue
Block a user