Merge pull request #1890 from tink2123/srn_ch

Adaptation of Chinese char
This commit is contained in:
xiaoting 2021-02-01 11:31:25 +08:00 committed by GitHub
commit 0c5c9f694d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,7 @@ class SRNHead(nn.Layer):
num_encoder_tus=self.num_encoder_TUs, num_encoder_tus=self.num_encoder_TUs,
num_decoder_tus=self.num_decoder_TUs, num_decoder_tus=self.num_decoder_TUs,
hidden_dims=self.hidden_dims) hidden_dims=self.hidden_dims)
self.vsfd = VSFD(in_channels=in_channels) self.vsfd = VSFD(in_channels=in_channels, char_num=self.char_num)
self.gsrm.wrap_encoder1.prepare_decoder.emb0 = self.gsrm.wrap_encoder0.prepare_decoder.emb0 self.gsrm.wrap_encoder1.prepare_decoder.emb0 = self.gsrm.wrap_encoder0.prepare_decoder.emb0