add pt2tf tool
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import onnx
|
||||
|
||||
from onnx_tf.backend import prepare
|
||||
|
||||
onnx_model = onnx.load("input_path") # load onnx model
|
||||
tf_rep = prepare(onnx_model) # prepare tf representation
|
||||
tf_rep.export_graph("output_path") # export the model
|
||||
Reference in New Issue
Block a user