提交 8123688a 编写于 作者: A andyjpaddle

update rec_sar_head

上级 f57a6d1b
...@@ -151,11 +151,11 @@ class ParallelSARDecoder(BaseDecoder): ...@@ -151,11 +151,11 @@ class ParallelSARDecoder(BaseDecoder):
**kwargs): **kwargs):
super().__init__() super().__init__()
self.num_classes = num_classes self.num_classes = out_channels
self.enc_bi_rnn = enc_bi_rnn self.enc_bi_rnn = enc_bi_rnn
self.d_k = d_k self.d_k = d_k
self.start_idx = out_channels - 2 self.start_idx = out_channels - 2
self.padding_idx = out_channels - 1 self.padding_idx = out_channels - 1
self.max_seq_len = max_text_length self.max_seq_len = max_text_length
self.mask = mask self.mask = mask
self.pred_concat = pred_concat self.pred_concat = pred_concat
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册