(inputs, hparams, lstm_units, lengths, is_training)
return lstm_layer_builder(
      conv_output,
      lstm_units,
      hparams.bidirectional,
      is_training=is_training,
      lengths=lengths if hparams.use_lengths else None,
      stack_size=hparams.acoustic_rnn_stack_size,
      dropout_keep_prob=hparams.acoustic_rnn_dropout_keep_prob)
Acoustic model that handles all specs for a sequence in one window.
Acoustic model that handles all specs for a sequence in one window.
Acoustic model that handles all specs for a sequence in one window .
def acoustic_model(inputs, hparams, lstm_units, lengths, is_training):
  """Acoustic model that handles all specs for a sequence in one window."""
  conv_output = conv_net(inputs, hparams)
  if not lstm_units:
    return conv_output

  # default to lstm_layer
  if hparams.use_tflite_compatible:
    lstm_layer_builder = lstm_layer_static_for_tflite
  else:
    lstm_layer_builder = lstm_layer

  return lstm_layer_builder(
      conv_output,
      lstm_units,
      hparams.bidirectional,
      is_training=is_training,
      lengths=lengths if hparams.use_lengths else None,
      stack_size=hparams.acoustic_rnn_stack_size,
      dropout_keep_prob=hparams.acoustic_rnn_dropout_keep_prob)
def acoustic_model ( inputs , hparams , lstm_units , lengths , is_training ) : conv_output = conv_net ( inputs , hparams ) if not lstm_units : return conv_output # default to lstm_layer if hparams . use_tflite_compatible : lstm_layer_builder = lstm_layer_static_for_tflite else : lstm_layer_builder = lstm_layer return lstm_layer_builder ( conv_output , lstm_units , hparams . bidirectional , is_training = is_training , lengths = lengths if hparams . use_lengths else None , stack_size = hparams . acoustic_rnn_stack_size , dropout_keep_prob = hparams . acoustic_rnn_dropout_keep_prob )