Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
old_macaon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Franck Dary
old_macaon
Commits
efdbb8b4
Commit
efdbb8b4
authored
Oct 10, 2019
by
Franck Dary
Browse files
Options
Downloads
Patches
Plain Diff
Fixed decode advancement print and allowed absolute paths for train and dev
parent
3f3e41fa
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
decoder/src/Decoder.cpp
+2
-2
2 additions, 2 deletions
decoder/src/Decoder.cpp
maca_common/src/programOptionsTemplates.cpp
+8
-2
8 additions, 2 deletions
maca_common/src/programOptionsTemplates.cpp
with
10 additions
and
4 deletions
decoder/src/Decoder.cpp
+
2
−
2
View file @
efdbb8b4
...
...
@@ -70,7 +70,7 @@ void printAdvancement(Config & config, float currentSpeed, int nbActionsCutoff)
steps
=
config
.
rawInputHeadIndex
;
}
if
(
steps
&&
(
steps
%
nbActionsCutoff
==
0
||
totalSize
-
steps
<
nbActionsCutoff
))
fprintf
(
stderr
,
"Decode : %.2f%% speed : %s actions/s
\r
"
,
100.0
*
config
.
rawInputHeadIndex
/
config
.
rawInput
.
s
ize
()
,
int2humanStr
((
int
)
currentSpeed
).
c_str
());
fprintf
(
stderr
,
"Decode : %.2f%% speed : %s actions/s
\r
"
,
100.0
*
steps
/
totalS
ize
,
int2humanStr
((
int
)
currentSpeed
).
c_str
());
}
}
...
...
@@ -217,7 +217,7 @@ void Decoder::decodeNoBeam()
Errors
errors
;
errors
.
newSequence
();
int
nbActions
=
0
;
int
nbActionsCutoff
=
20
;
int
nbActionsCutoff
=
20
0
;
float
currentSpeed
=
0.0
;
auto
pastTime
=
std
::
chrono
::
high_resolution_clock
::
now
();
FILE
*
outputFile
=
stdout
;
...
...
This diff is collapsed.
Click to expand it.
maca_common/src/programOptionsTemplates.cpp
+
8
−
2
View file @
efdbb8b4
...
...
@@ -174,7 +174,13 @@ void updatePaths()
ProgramParameters
::
tmFilename
=
ProgramParameters
::
expPath
+
ProgramParameters
::
tmName
;
ProgramParameters
::
bdFilename
=
ProgramParameters
::
expPath
+
ProgramParameters
::
bdName
;
ProgramParameters
::
mcdFilename
=
ProgramParameters
::
expPath
+
ProgramParameters
::
mcdName
;
if
(
ProgramParameters
::
trainName
[
0
]
==
'/'
||
ProgramParameters
::
trainName
[
0
]
==
'~'
)
ProgramParameters
::
trainFilename
=
ProgramParameters
::
trainName
;
else
ProgramParameters
::
trainFilename
=
ProgramParameters
::
expPath
+
ProgramParameters
::
trainName
;
if
(
ProgramParameters
::
devName
[
0
]
==
'/'
||
ProgramParameters
::
devName
[
0
]
==
'~'
)
ProgramParameters
::
devFilename
=
ProgramParameters
::
devName
;
else
ProgramParameters
::
devFilename
=
ProgramParameters
::
expPath
+
ProgramParameters
::
devName
;
ProgramParameters
::
newTemplatePath
=
ProgramParameters
::
langPath
+
"bin/"
+
ProgramParameters
::
baseExpName
+
slash
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment