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
83053f97
Commit
83053f97
authored
Nov 11, 2017
by
Myle Ott
Browse files
Fixes for `--log-format`
parent
55a989e8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
fairseq/progress_bar.py
fairseq/progress_bar.py
+1
-1
train.py
train.py
+1
-1
No files found.
fairseq/progress_bar.py
View file @
83053f97
...
...
@@ -80,7 +80,7 @@ class json_progress_bar(progress_bar):
def
__init__
(
self
,
iterable
,
epoch
=
None
,
prefix
=
None
,
log_interval
=
1000
):
super
().
__init__
(
iterable
,
epoch
,
prefix
)
self
.
log_interval
=
log_interval
self
.
postfix_json
=
None
self
.
stats
=
None
def
__iter__
(
self
):
size
=
float
(
len
(
self
.
iterable
))
...
...
train.py
View file @
83053f97
...
...
@@ -36,7 +36,7 @@ def main():
args
=
utils
.
parse_args_and_arch
(
parser
)
if
args
.
no_progress_bar
:
if
args
.
no_progress_bar
and
args
.
log_format
==
'tqdm'
:
args
.
log_format
=
'simple'
if
not
os
.
path
.
exists
(
args
.
save_dir
):
...
...
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