def build(self, **kwargs):
    '同时构建Encoder和Decoder\n        '
    self._encoder.build(**kwargs)
    self._decoder.build(**kwargs)
    self.encoder = self._encoder.model
    self.decoder = self._decoder.model
    self.inputs = (self.encoder.inputs + self.decoder.inputs[1:])
    self.outputs = self.decoder((self.encoder.outputs + self.decoder.inputs[1:]))
    self.model = Model(self.inputs, self.outputs)
同时构建Encoder和Decoder
def build(self, **kwargs):
    '\n        '
    self._encoder.build(**kwargs)
    self._decoder.build(**kwargs)
    self.encoder = self._encoder.model
    self.decoder = self._decoder.model
    self.inputs = (self.encoder.inputs + self.decoder.inputs[1:])
    self.outputs = self.decoder((self.encoder.outputs + self.decoder.inputs[1:]))
    self.model = Model(self.inputs, self.outputs)