mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-20 20:43:54 +08:00
* Running pre-commit in CI * fix dockerfile syntax * dont run on submodule repo folders * Fix some import errors in ci * more stuff * That should be the last one
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")
|