Skip to content

Commit 3ef9cf8

Browse files
committed
add missing import in tf<2
1 parent fdabeea commit 3ef9cf8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tf2onnx/tf_loader.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def is_tf2():
2929
from tensorflow.python.framework import convert_to_constants, func_graph, function_def_to_graph
3030
else:
3131
from tensorflow.python.framework.graph_util import convert_variables_to_constants
32+
from tensorflow.python.framework import function_def_to_graph
3233

3334

3435
if is_tf2():

0 commit comments

Comments
 (0)