Skip to content

Instantly share code, notes, and snippets.

@Pibborn
Created January 23, 2018 11:35
Show Gist options
  • Save Pibborn/f60539adef39c4b7c41fdea20ecf75ad to your computer and use it in GitHub Desktop.
Save Pibborn/f60539adef39c4b7c41fdea20ecf75ad to your computer and use it in GitHub Desktop.
from DeepSpeech import BiRNN, create_inference_graph, export, initialize_globals
import tensorflow as tf
if __name__ == '__main__':
batch_size = 8
input_tensor = tf.placeholder(tf.float32, [batch_size, None, 494])
seq_length = tf.placeholder(tf.int32, [batch_size])
dropout = [0.] * 6
initialize_globals()
logits = BiRNN(input_tensor, tf.to_int64(seq_length), dropout)
export()
return
'''
I Exporting the model...
Traceback (most recent call last):
File "gen_renamed_graph.py", line 12, in <module>
export()
File "[...]/DeepSpeech-repo/DeepSpeech.py", line 1741, in export
checkpoint_path = checkpoint.model_checkpoint_path
AttributeError: 'NoneType' object has no attribute 'model_checkpoint_path'
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment