Skip to content

Commit

Permalink
✅ Upgrade deprecated function
Browse files Browse the repository at this point in the history
  • Loading branch information
angeliney committed Feb 24, 2023
1 parent e119df3 commit 1a4fee3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


def has_gpu():
return tf.test.is_gpu_available()
return len(tf.config.list_physical_devices('GPU')) > 0


MODELS = [
Expand Down

0 comments on commit 1a4fee3

Please sign in to comment.