import tensorflow as tf

def cnn_bi_lstm_model(x, amp_factor, bil_lstm_win_size, num_classes):
    logits = cnn_model(x, amp_factor=amp_factor)
    logits = tf.reshape(logits, [-1, bil_lstm_win_size, 256*amp_factor])

    forward_cell = tf.nn.rnn_cell.LSTMCell(128)
    backward_cell = tf.nn.rnn_cell.LSTMCell(128)
    encoder_outputs,_ = tf.nn.bidirectional_dynamic_rnn(
            forward_cell,
            backward_cell,
            logits,
