mirror of
https://github.com/mozilla/DeepSpeech.git
synced 2025-10-26 11:19:39 +00:00
12 lines
271 B
Python
Executable File
12 lines
271 B
Python
Executable File
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
import tensorflow as tf
|
|
import sys
|
|
|
|
with tf.gfile.FastGFile(sys.argv[1], 'rb') as fin:
|
|
graph_def = tf.GraphDef()
|
|
graph_def.ParseFromString(fin.read())
|
|
|
|
print('\n'.join(sorted(set(n.op for n in graph_def.node))))
|