@@ -42,7 +42,7 @@ int main(int argc, char *argv[]) {
4242
4343 bool binary_write = true ;
4444 BaseFloat learning_rate = -1 ,
45- dropout = 0.0 ;
45+ dropout = - 1 ;
4646 std::string nnet_config, edits_config, edits_str;
4747 BaseFloat scale = 1.0 ;
4848
@@ -64,7 +64,10 @@ int main(int argc, char *argv[]) {
6464 " will be converted to newlines before parsing. E.g. "
6565 " '--edits=remove-orphans'." );
6666 po.Register (" set-dropout-proportion" , &dropout, " Set dropout proportion "
67- " in all DropoutComponent to this value." );
67+ " in all DropoutComponent to this value. "
68+ " This option is deprecated. Use set-dropout-proportion "
69+ " option in edits-config. See comments in ReadEditConfig() "
70+ " in nnet3/nnet-utils.h." );
6871 po.Register (" scale" , &scale, " The parameter matrices are scaled"
6972 " by the specified value." );
7073 po.Read (argc, argv);
@@ -92,7 +95,10 @@ int main(int argc, char *argv[]) {
9295 ScaleNnet (scale, &nnet);
9396
9497 if (dropout > 0 )
95- SetDropoutProportion (dropout, &nnet);
98+ KALDI_ERR << " --dropout option is deprecated. "
99+ << " Use set-dropout-proportion "
100+ << " option in edits-config. See comments in ReadEditConfig() "
101+ << " in nnet3/nnet-utils.h." ;
96102
97103 if (!edits_config.empty ()) {
98104 Input ki (edits_config);
0 commit comments