Skip to content
Snippets Groups Projects
Commit f75f941f authored by Franck Dary's avatar Franck Dary
Browse files

Print time in extract examples

parent d438d3c3
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,8 @@ void Trainer::createDevDataset(SubConfig & config, bool debug)
void Trainer::extractExamples(SubConfig & config, bool debug, std::vector<torch::Tensor> & contexts, std::vector<torch::Tensor> & classes)
{
fmt::print(stderr, "[{}] Starting to extract examples\n", util::getTime());
config.addPredicted(machine.getPredicted());
config.setState(machine.getStrategy().getInitialState());
......@@ -88,6 +90,8 @@ void Trainer::extractExamples(SubConfig & config, bool debug, std::vector<torch:
if (config.needsUpdate())
config.update();
}
fmt::print(stderr, "[{}] Extracted {} examples\n", util::getTime(), util::int2HumanStr(classes.size()));
}
float Trainer::processDataset(DataLoader & loader, bool train, bool printAdvancement)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment