mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-27 02:43:54 +08:00
10 lines
227 B
Python
10 lines
227 B
Python
|
|
#!/usr/bin/env python3
|
||
|
|
import sys
|
||
|
|
import tensorflow as tf
|
||
|
|
|
||
|
|
with open(sys.argv[1], "rb") as f:
|
||
|
|
graph_def = tf.compat.v1.GraphDef()
|
||
|
|
graph_def.ParseFromString(f.read())
|
||
|
|
#tf.io.write_graph(graph_def, '', sys.argv[1]+".try")
|
||
|
|
|