Skip to content

Commit

Permalink
true not false
Browse files Browse the repository at this point in the history
  • Loading branch information
felixdittrich92 committed Oct 25, 2024
1 parent 8a12442 commit f914764
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doctr/models/utils/tensorflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ def export_model_to_onnx(
"""
# get the users eager mode
eager_mode = tf.executing_eagerly()
# set eager mode to false to avoid issues with tf2onnx
tf.config.run_functions_eagerly(False)
# set eager mode to true to avoid issues with tf2onnx
tf.config.run_functions_eagerly(True)
large_model = kwargs.get("large_model", False)
model_proto, _ = tf2onnx.convert.from_keras(
model,
Expand Down

0 comments on commit f914764

Please sign in to comment.