Commit 7f2304ab authored by tink2123's avatar tink2123
Browse files

Adaptation of Chinese char

parent acd479ea
...@@ -246,7 +246,7 @@ class SRNHead(nn.Layer): ...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment