(inputs, hparams, lstm_units, lengths)
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):
  """Acoustic model that handles all specs for a sequence in one window."""
  conv_output = conv_net(inputs, hparams)

  if lstm_units:
    return lstm_layer(
        conv_output,
        lstm_units,
        lengths=lengths if hparams.use_lengths else None,
        stack_size=hparams.acoustic_rnn_stack_size,
        use_cudnn=hparams.use_cudnn,
        bidirectional=hparams.bidirectional)

  else:
    return conv_output
def acoustic_model ( inputs , hparams , lstm_units , lengths ) : conv_output = conv_net ( inputs , hparams ) if lstm_units : return lstm_layer ( conv_output , lstm_units , lengths = lengths if hparams . use_lengths else None , stack_size = hparams . acoustic_rnn_stack_size , use_cudnn = hparams . use_cudnn , bidirectional = hparams . bidirectional ) else : return conv_output