def init_states(batch_size, num_lstm_layer, num_hidden):
    """
    Returns name and shape of init states of LSTM network

    Parameters
    ----------
    batch_size: list of tuple of str and tuple of int and int
    num_lstm_layer: int
    num_hidden: int

    Returns
    -------
    list of tuple of str and tuple of int and int
    """
    init_c = [('l%d_init_c' % l, (batch_size, num_hidden)) for l in range(num_lstm_layer)]
    init_h = [('l%d_init_h' % l, (batch_size, num_hidden)) for l in range(num_lstm_layer)]
    return init_c + init_h
def init_states ( batch_size , num_lstm_layer , num_hidden ) : init_c = [ ( 'l%d_init_c' % l , ( batch_size , num_hidden ) ) for l in range ( num_lstm_layer ) ] init_h = [ ( 'l%d_init_h' % l , ( batch_size , num_hidden ) ) for l in range ( num_lstm_layer ) ] return init_c + init_h
Returns name and shape of init states of LSTM network

    Parameters
    ----------
    batch_size: list of tuple of str and tuple of int and int
    num_lstm_layer: int
    num_hidden: int

    Returns
    -------
    list of tuple of str and tuple of int and int