解码器Class ·使用编码器输出和任何其他信息创建状态 class Decoder(nn.Block): def_init_(self,**kwargs): super(Decoder,self).__init_(**kwargs) def init_state(self,enc_outputs,*args): raise NotImplementedError def forward(self,X,state): raise NotImplementedError D2L.ai 解码器 Class • 使用编码器输出和任何其他信息创建状态