File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 11import inspect
22
3-
4-
5-
63import collections
74import functools
85import itertools
9- import keras
106import numpy as np
117import string
12- import tensorflow as tf
138
9+ import jax
1410from jax .experimental import jax2tf
11+ import keras
1512from keras .src import backend
1613from keras .src import random
1714from keras .src import tree
2320from keras .src .utils import jax_utils
2421from keras .src .utils import tracking
2522from keras .src .utils .module_utils import jax
26-
23+ import tensorflow as tf
2724
2825
2926
@@ -249,8 +246,8 @@ def __init__(
249246 ):
250247 if backend .backend () not in ["jax" , "tensorflow" ]:
251248 raise ValueError (
252- "JaxLayer is only supported with the JAX or Tensorflow backend. Current "
253- f"backend: { backend .backend ()} "
249+ "JaxLayer is only supported with the JAX or Tensorflow backend. "
250+ f"Current backend: { backend .backend ()} "
254251 )
255252
256253 if init_fn is None and params is None and state is None :
You can’t perform that action at this time.
0 commit comments