Skip to content

Commit

Permalink
Fix test_dali_tf_dataset_mnist_eager test (#3991)
Browse files Browse the repository at this point in the history
- fixes missing import of available_gpus in the
  test_dali_tf_dataset_mnist_eager test

Signed-off-by: Janusz Lisiecki <[email protected]>
  • Loading branch information
JanuszL authored Jun 17, 2022
1 parent 7238f15 commit 804bd92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dali/test/python/test_dali_tf_dataset_mnist_eager.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from nose.tools import with_setup

import test_dali_tf_dataset_mnist as mnist
from test_utils_tensorflow import skip_for_incompatible_tf
from test_utils_tensorflow import skip_for_incompatible_tf, available_gpus
from nose_utils import raises

tf.compat.v1.enable_eager_execution()
Expand Down Expand Up @@ -62,7 +62,7 @@ def test_keras_wrong_placement_cpu():

@with_setup(skip_for_incompatible_tf)
def test_keras_multi_gpu_mirrored_strategy():
strategy = tf.distribute.MirroredStrategy(devices=mnist.available_gpus())
strategy = tf.distribute.MirroredStrategy(devices=available_gpus())

with strategy.scope():
model = mnist.keras_model()
Expand Down

0 comments on commit 804bd92

Please sign in to comment.