Skip to content

Commit

Permalink
Replaced deprecated is_gpu_available with `list_physical_devices("G…
Browse files Browse the repository at this point in the history
…PU")`
  • Loading branch information
Mole1424 authored Dec 26, 2024
1 parent 339aa06 commit d2fbda7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def tensorflow_resnet50(request: Any) -> ModelAndData:

import tensorflow as tf

if not tf.test.is_gpu_available():
if not list_physical_devices("GPU"):
pytest.skip("ResNet50 test too slow without GPU")

model = tf.keras.applications.ResNet50(weights="imagenet")
Expand Down

0 comments on commit d2fbda7

Please sign in to comment.