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
1d79ed9b
"docs/vscode:/vscode.git/clone" did not exist on "269109dbfbbdbe2800535239b881e96e1828a0ef"
Commit
1d79ed9b
authored
Jul 08, 2018
by
Angela Fan
Browse files
adding model arg override at generation time for interactive.py
parent
30ef667d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
interactive.py
interactive.py
+1
-1
No files found.
interactive.py
View file @
1d79ed9b
...
...
@@ -73,7 +73,7 @@ def main(args):
# Load ensemble
print
(
'| loading model(s) from {}'
.
format
(
args
.
path
))
model_paths
=
args
.
path
.
split
(
':'
)
models
,
model_args
=
utils
.
load_ensemble_for_inference
(
model_paths
,
task
)
models
,
model_args
=
utils
.
load_ensemble_for_inference
(
model_paths
,
task
,
model_arg_overrides
=
eval
(
args
.
model_overrides
)
)
# Set dictionaries
src_dict
=
task
.
source_dictionary
...
...
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