Skip to content

Commit acb77f4

Browse files
committed
chore: Make the tf version loose
Signed-off-by: Dheeraj Peri <[email protected]>
1 parent de21cc3 commit acb77f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tf2onnx/tf_loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ def tf_optimize_grappler(input_names, output_names, graph_def, fold_constant=Non
686686
# 'pruning', 'constfold', 'arithmetic', 'dependency', 'function',
687687
'function', 'dependency'
688688
]
689-
if is_tf2():
689+
if LooseVersion(tf.__version__) > "2.4"::
690690
# This flag disables folding QDQ nodes around constants in the network (eg: around conv/FC weights)
691691
rewrite_options.experimental_disable_folding_quantization_emulation = True
692692

0 commit comments

Comments
 (0)