Skip to content

Commit

Permalink
Code style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fchollet committed Dec 9, 2024
1 parent 00d0f49 commit 5b6b9b0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions keras/src/models/functional_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
from keras.src import applications
from keras.src import backend
from keras.src import layers
from keras.src import ops
from keras.src import saving
from keras.src import testing
from keras.src.layers.core.input_layer import Input
from keras.src.layers.input_spec import InputSpec
from keras.src.models import Functional
from keras.src.models import Model
from keras.src.models import Sequential
from keras.src import ops


class FunctionalTest(testing.TestCase):
Expand Down Expand Up @@ -707,9 +707,10 @@ def test_list_input_with_dict_build(self):
model = Model(inputs={"IT": x1, "IS": x2}, outputs=y)
x1 = ops.ones((1, 10))
x2 = ops.zeros((1, 10))
r1 = model({"IT": x1, "IS": x2})
# Works
_ = model({"IT": x1, "IS": x2})
with self.assertRaisesRegex(
ValueError,
"The structure of `inputs` doesn't match the expected structure",
):
r2 = model([x1, x2])
model([x1, x2])

0 comments on commit 5b6b9b0

Please sign in to comment.