Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
nkovela1 committed Sep 19, 2023
1 parent e248ba1 commit f53cfd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion keras_core/export/export_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ def __init__(self):
)

# TODO(nkovela): Make JAX version checking programatic.
if backend.backend()=="jax":
if backend.backend() == "jax":
from jax import __version__ as jax_v

Check warning on line 96 in keras_core/export/export_lib.py

View check run for this annotation

Codecov / codecov/patch

keras_core/export/export_lib.py#L96

Added line #L96 was not covered by tests

if jax_v > "0.4.15":
raise ValueError(

Check warning on line 99 in keras_core/export/export_lib.py

View check run for this annotation

Codecov / codecov/patch

keras_core/export/export_lib.py#L99

Added line #L99 was not covered by tests
"The export API is only compatible with JAX version 0.4.15 "
Expand Down
3 changes: 2 additions & 1 deletion keras_core/export/export_lib_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Tests for inference-only model/layer exporting utilities."""
import os
import sys

import numpy as np
import pytest
import tensorflow as tf
Expand Down Expand Up @@ -29,7 +30,7 @@ def get_model():
reason="Export only currently supports the TF and JAX backends.",
)
@pytest.mark.skipif(
backend.backend()=="jax" and sys.modules["jax"].__version__ > "0.4.15",
backend.backend() == "jax" and sys.modules["jax"].__version__ > "0.4.15",
reason="The export API is only compatible with JAX version <= 0.4.15.",
)
class ExportArchiveTest(testing.TestCase):
Expand Down

0 comments on commit f53cfd1

Please sign in to comment.