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
Uni-Core
Commits
c1f8c0e2
Unverified
Commit
c1f8c0e2
authored
Mar 31, 2023
by
Guolin Ke
Committed by
GitHub
Mar 31, 2023
Browse files
set default --required-batch-size-multiple to 1
parent
e9d46fa0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
unicore/options.py
unicore/options.py
+1
-1
No files found.
unicore/options.py
View file @
c1f8c0e2
...
...
@@ -224,7 +224,7 @@ def add_dataset_args(parser, train=False, gen=False):
help
=
'ignore too long or too short lines in valid and test set'
)
group
.
add_argument
(
'--batch-size'
,
'--max-sentences'
,
type
=
int
,
metavar
=
'N'
,
help
=
'maximum number of sentences in a batch'
)
group
.
add_argument
(
'--required-batch-size-multiple'
,
default
=
8
,
type
=
int
,
metavar
=
'N'
,
group
.
add_argument
(
'--required-batch-size-multiple'
,
default
=
1
,
type
=
int
,
metavar
=
'N'
,
help
=
'batch size will be a multiplier of this value'
)
group
.
add_argument
(
'--data-buffer-size'
,
default
=
10
,
type
=
int
,
help
=
'Number of batches to preload'
)
...
...
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