Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/marian.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/config_parser.cpp')
-rw-r--r--src/common/config_parser.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/common/config_parser.cpp b/src/common/config_parser.cpp
index d7818afb..b3e8950b 100644
--- a/src/common/config_parser.cpp
+++ b/src/common/config_parser.cpp
@@ -255,10 +255,16 @@ void ConfigParser::addOptionsModel(cli::CLIWrapper& cli) {
"Pool encoder states instead of using cross attention (selects first encoder state, best used with special token)");
cli.add<int>("--transformer-dim-ffn",
"Size of position-wise feed-forward network (transformer)",
- 2048);
+ 2048);
+ cli.add<int>("--transformer-decoder-dim-ffn",
+ "Size of position-wise feed-forward network in decoder (transformer). Uses --transformer-dim-ffn if 0.",
+ 0);
cli.add<int>("--transformer-ffn-depth",
"Depth of filters (transformer)",
2);
+ cli.add<int>("--transformer-decoder-ffn-depth",
+ "Depth of filters in decoder (transformer). Uses --transformer-ffn-depth if 0",
+ 0);
cli.add<std::string>("--transformer-ffn-activation",
"Activation between filters: swish or relu (transformer)",
"swish");