Commit 79837075 authored by Franck Dary's avatar Franck Dary
Browse files

Increased max nb examples to 20 millions

parent 61e77a5a
......@@ -23,7 +23,7 @@ class Trainer
private :
static constexpr std::size_t safetyNbExamplesMax = 10*1000*1000;
static constexpr std::size_t safetyNbExamplesMax = 20*1000*1000;
struct Examples
{
......
......@@ -160,7 +160,7 @@ void Trainer::extractExamples(std::vector<SubConfig> & configs, bool debug, std:
{
totalNbExamples += 1;
if (totalNbExamples >= (int)safetyNbExamplesMax)
util::myThrow(fmt::format("Trying to extract more examples than the limit ({})", util::int2HumanStr(safetyNbExamplesMax)));
util::error(fmt::format("Trying to extract more examples than the limit ({})", util::int2HumanStr(safetyNbExamplesMax)));
examplesMutex.lock();
examplesPerState[config.getState()].addContext(context);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment