Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
LinGeLin committed Dec 25, 2023
1 parent c3fac82 commit 0f7ffb5
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ def get_emb_sequential_model(emb_t, opt, *args, **kwargs):
return model


is_gpu_available = test_util.is_gpu_available()


class HorovodTest(test.TestCase):

@test_util.deprecated_graph_mode_only
Expand All @@ -90,6 +93,8 @@ def test_all_to_all_embedding_trainable(self):
if (tf.__version__ == "2.11.0" or tf.__version__ == "2.11.1"):
self.skipTest(
"The save function doesn't work with TF 2.11, skip the test.")
if not is_gpu_available:
self.skipTest('Only test when gpu is available.')
if (is_macos() and is_arm64()):
self.skipTest(
"Apple silicon devices don't support synchronous training based on Horovod."
Expand Down

0 comments on commit 0f7ffb5

Please sign in to comment.