Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Franck Dary
macaon
Commits
79837075
Commit
79837075
authored
Apr 14, 2021
by
Franck Dary
Browse files
Increased max nb examples to 20 millions
parent
61e77a5a
Changes
2
Hide whitespace changes
Inline
Side-by-side
trainer/include/Trainer.hpp
View file @
79837075
...
...
@@ -23,7 +23,7 @@ class Trainer
private
:
static
constexpr
std
::
size_t
safetyNbExamplesMax
=
1
0
*
1000
*
1000
;
static
constexpr
std
::
size_t
safetyNbExamplesMax
=
2
0
*
1000
*
1000
;
struct
Examples
{
...
...
trainer/src/Trainer.cpp
View file @
79837075
...
...
@@ -160,7 +160,7 @@ void Trainer::extractExamples(std::vector<SubConfig> & configs, bool debug, std:
{
totalNbExamples
+=
1
;
if
(
totalNbExamples
>=
(
int
)
safetyNbExamplesMax
)
util
::
myTh
ro
w
(
fmt
::
format
(
"Trying to extract more examples than the limit ({})"
,
util
::
int2HumanStr
(
safetyNbExamplesMax
)));
util
::
er
ro
r
(
fmt
::
format
(
"Trying to extract more examples than the limit ({})"
,
util
::
int2HumanStr
(
safetyNbExamplesMax
)));
examplesMutex
.
lock
();
examplesPerState
[
config
.
getState
()].
addContext
(
context
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment