Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Fairseq
Commits
0e8414f9
"vscode:/vscode.git/clone" did not exist on "c620bfc2b79a1a5932b4e0731f712b3a79e1e5f8"
Commit
0e8414f9
authored
Apr 02, 2018
by
Myle Ott
Browse files
Remove sweep_log prefix from json progress bar
parent
d62a8651
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
fairseq/progress_bar.py
fairseq/progress_bar.py
+1
-1
No files found.
fairseq/progress_bar.py
View file @
0e8414f9
...
@@ -118,7 +118,7 @@ class json_progress_bar(progress_bar):
...
@@ -118,7 +118,7 @@ class json_progress_bar(progress_bar):
def
print
(
self
,
stats
):
def
print
(
self
,
stats
):
"""Print end-of-epoch stats."""
"""Print end-of-epoch stats."""
stats
=
self
.
_format_stats
(
self
.
stats
,
epoch
=
self
.
epoch
)
stats
=
self
.
_format_stats
(
self
.
stats
,
epoch
=
self
.
epoch
)
print
(
"sweep_log: "
+
json
.
dumps
(
stats
),
flush
=
True
)
print
(
json
.
dumps
(
stats
),
flush
=
True
)
def
_format_stats
(
self
,
stats
,
epoch
=
None
,
update
=
None
):
def
_format_stats
(
self
,
stats
,
epoch
=
None
,
update
=
None
):
postfix
=
OrderedDict
()
postfix
=
OrderedDict
()
...
...
Write
Preview
Markdown
is supported
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