mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-08-22 16:53:49 +08:00
c8440ab691
version: lp-dp v0.9.2 for EON/C2 date: 2023-05-09T02:32:30 commit: cb8adff9d368de2e442e1e7f4309b70a4a2013ad
9 lines
258 B
Python
Executable File
9 lines
258 B
Python
Executable File
#!/usr/bin/env python3
|
|
import sys
|
|
import tensorflow as tf # pylint: disable=import-error
|
|
|
|
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")
|