def __init__(self, **kwargs):
    super(T5, self).__init__(**kwargs)
    kwargs['layers'] = self.layers
    (e_name, d_name) = ('Encoder', 'Decoder')
    if ('name' in kwargs):
        e_name = ('%s_%s' % (kwargs['name'], e_name))
        d_name = ('%s_%s' % (kwargs['name'], d_name))
        del kwargs['name']
    self._encoder = T5_Encoder(name=e_name, **kwargs)
    self._decoder = T5_Decoder(name=d_name, **kwargs)
def __init__(self, **kwargs):
    super(T5, self).__init__(**kwargs)
    kwargs['layers'] = self.layers
    (e_name, d_name) = ('Encoder', 'Decoder')
    if ('name' in kwargs):
        e_name = ('%s_%s' % (kwargs['name'], e_name))
        d_name = ('%s_%s' % (kwargs['name'], d_name))
        del kwargs['name']
    self._encoder = T5_Encoder(name=e_name, **kwargs)
    self._decoder = T5_Decoder(name=d_name, **kwargs)