(self, decoder_cons)
Based on decoder connections, create the list of which layers encoder are
        connected to.
Based on decoder connections, create the list of which layers encoder are
        connected to.
Based on decoder connections create the list of which layers encoder are connected to .
def set_connections(self, decoder_cons):
        """
        Based on decoder connections, create the list of which layers encoder are
        connected to.
        """
        cons = []
        for ii in range(len(self._recurrent)):
            l_list = [i_dec for i_dec, i_enc in enumerate(decoder_cons) if i_enc == ii]
            cons.append(l_list)
        self.connections = cons
def set_connections ( self , decoder_cons ) : cons = [ ] for ii in range ( len ( self . _recurrent ) ) : l_list = [ i_dec for i_dec , i_enc in enumerate ( decoder_cons ) if i_enc == ii ] cons . append ( l_list ) self . connections = cons