def get_auto_name(name: str, rnn_layers: int, rnn_size: int, rnn_bidirectional=False, rnn_type='lstm') -> str:
    """Generate unique name from parameters"""
    model_name = f"{name}_{rnn_layers}l{rnn_size}"
    if rnn_bidirectional:
        model_name += 'bi'
    if rnn_type == 'gru':
        model_name += '_gru'
    return model_name