Skip to content

Commit

Permalink
Fix torch gpu CI (#20696)
Browse files Browse the repository at this point in the history
  • Loading branch information
james77777778 authored Dec 28, 2024
1 parent be1191f commit 2b073b6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 0 additions & 1 deletion .kokoro/github/ubuntu/gpu/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ then

# TODO: keras/src/export/export_lib_test.py update LD_LIBRARY_PATH
pytest keras --ignore keras/src/applications \
--ignore keras/src/export/export_lib_test.py \
--cov=keras \
--cov-config=pyproject.toml

Expand Down
6 changes: 6 additions & 0 deletions keras/src/export/export_lib_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ def get_model(type="sequential", input_shape=(10,), layer_list=None):
),
)
@pytest.mark.skipif(testing.jax_uses_gpu(), reason="Leads to core dumps on CI")
@pytest.mark.skipif(
testing.torch_uses_gpu(), reason="Leads to core dumps on CI"
)
class ExportSavedModelTest(testing.TestCase):
@parameterized.named_parameters(
named_product(model_type=["sequential", "functional", "subclass"])
Expand Down Expand Up @@ -344,6 +347,9 @@ def test_jax_specific_kwargs(self, model_type, is_static, jax2tf_kwargs):
reason="Export only currently supports the TF and JAX backends.",
)
@pytest.mark.skipif(testing.jax_uses_gpu(), reason="Leads to core dumps on CI")
@pytest.mark.skipif(
testing.torch_uses_gpu(), reason="Leads to core dumps on CI"
)
class ExportArchiveTest(testing.TestCase):
@parameterized.named_parameters(
named_product(model_type=["sequential", "functional", "subclass"])
Expand Down
3 changes: 3 additions & 0 deletions keras/src/models/model_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1229,6 +1229,9 @@ def test_functional_deeply_nested_outputs_struct_losses(self):
@pytest.mark.skipif(
testing.jax_uses_gpu(), reason="Leads to core dumps on CI"
)
@pytest.mark.skipif(
testing.torch_uses_gpu(), reason="Leads to core dumps on CI"
)
def test_export(self):
import tensorflow as tf

Expand Down

0 comments on commit 2b073b6

Please sign in to comment.