Skip to content

Commit

Permalink
Move Jax import to conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
sampathweb committed Mar 21, 2024
1 parent dc398f7 commit 9ceb80b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion keras/utils/jax_layer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import inspect

import jax
import numpy as np

from keras import backend
Expand All @@ -10,6 +9,11 @@
from keras.utils import shape_utils
from keras.utils import tracking

try:
import jax
except ImportError:
jax = None


@keras_export("keras.layers.JaxLayer")
class JaxLayer(Layer):
Expand Down

0 comments on commit 9ceb80b

Please sign in to comment.