wip
This commit is contained in:
8
selfdrive/modeld/tests/tf_test/pb_loader.py
Normal file
8
selfdrive/modeld/tests/tf_test/pb_loader.py
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/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")
|
||||
Reference in New Issue
Block a user