Skip to content

Commit

Permalink
AutoUpdate TensorFlow in export.py (#9447)
Browse files Browse the repository at this point in the history
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
  • Loading branch information
glenn-jocher committed Sep 16, 2022
1 parent fe10b4a commit db06f49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions export.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ def export_saved_model(model,
keras=False,
prefix=colorstr('TensorFlow SavedModel:')):
# YOLOv5 TensorFlow SavedModel export
check_requirements('tensorflow' if torch.cuda.is_available() else 'tensorflow-cpu')
import tensorflow as tf
from tensorflow.python.framework.convert_to_constants import convert_variables_to_constants_v2

Expand Down

0 comments on commit db06f49

Please sign in to comment.