Skip to content

Commit

Permalink
cfr
Browse files Browse the repository at this point in the history
  • Loading branch information
LinGeLin committed Mar 29, 2024
1 parent 7300a1e commit 48340e8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/testing/build_and_run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,14 @@ if [ "$(uname)" != "Darwin" ]; then
bash /install/install_horovod.sh $HOROVOD_VERSION
fi

IGNORE_HKV="--ignore=./tensorflow_recommenders_addons/dynamic_embedding/python/kernel_tests/hkv_hashtable_ops_test.py"
IGNORE_HKV=""
if [ "$TF_NEED_CUDA" -eq 0 ]; then
IGNORE_HKV="--ignore=./tensorflow_recommenders_addons/dynamic_embedding/python/kernel_tests/hkv_hashtable_ops_test.py"
fi

# Only use GPU 0 if available.
if [ -x "$(command -v nvidia-smi)" ]; then
export CUDA_VISIBLE_DEVICES=0
IGNORE_HKV=""
fi

python -m pytest -v -s --functions-durations=20 --modules-durations=5 $IGNORE_HKV $SKIP_CUSTOM_OP_TESTS_FLAG $EXTRA_ARGS ./tensorflow_recommenders_addons/dynamic_embedding/python/kernel_tests/
Expand Down

0 comments on commit 48340e8

Please sign in to comment.