Hi,
For some reason, I want to train the Deepspeech model with static_rnn function using LSTMCell in the normal TensorFlow environment (not TFLite), but when I replace rnn_impl_lstmblockfusedcell with rnn_impl_static_rnn, it shows:
File "DeepSpeech.py", line 959, in main
train()
File "DeepSpeech.py", line 494, in train
gradients, loss, non_finite_files = get_tower_results(iterator, optimizer, dropout_rates)
File "DeepSpeech.py", line 321, in get_tower_results
avg_loss, non_finite_files = calculate_mean_edit_distance_and_loss(iterator, dropout_rates, reuse=i > 0)
File "DeepSpeech.py", line 248, in calculate_mean_edit_distance_and_loss
logits, _ = create_model(batch_x, batch_seq_len, dropout, reuse=reuse, rnn_impl=rnn_impl)
File "DeepSpeech.py", line 199, in create_model
output, output_state = rnn_impl(layer_3, seq_length, previous_state, reuse)
File "DeepSpeech.py", line 101, in rnn_impl_lstmblockfusedcell
x = [x[l] for l in range(x.shape[0])]
TypeError: __index__ returned non-int (type NoneType)
I have also set the export_tflite flag to TRUE, but it didn’t help here. Where I missed?
Thank you.