'Creates the bridge to be used between encoder and decoder'

def _create_bridge(self, encoder_outputs, decoder_state_size):

    bridge_class = (locate(self.params[u'bridge.class']) or getattr(bridges, self.params[u'bridge.class']))
    return bridge_class(encoder_outputs=encoder_outputs, decoder_state_size=decoder_state_size, params=self.params[u'bridge.params'], mode=self.mode)
