Skip to content

Commit ce13e69

Browse files
committed
format
1 parent 1dfe1d3 commit ce13e69

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

keras/src/utils/jax_layer.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
import inspect
22

3-
4-
5-
63
import collections
74
import functools
85
import itertools
9-
import keras
106
import numpy as np
117
import string
12-
import tensorflow as tf
138

9+
import jax
1410
from jax.experimental import jax2tf
11+
import keras
1512
from keras.src import backend
1613
from keras.src import random
1714
from keras.src import tree
@@ -23,7 +20,7 @@
2320
from keras.src.utils import jax_utils
2421
from keras.src.utils import tracking
2522
from 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:

0 commit comments

Comments
 (0)