Skip to content

Commit

Permalink
Fix code format
Browse files Browse the repository at this point in the history
  • Loading branch information
fchollet committed Sep 21, 2024
1 parent bae21ac commit d35031c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def test_random_brightness_inference(self):
output = layer(inputs, training=False)
self.assertAllClose(inputs, output)

def test_output(self):
def test_correctness(self):
seed = 2390

# Always scale up, but randomly between 0 ~ 255
Expand Down
2 changes: 1 addition & 1 deletion keras/src/models/sequential_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,6 @@ def test_hasattr(self):
def test_layers_setter(self):
model = Sequential()
with self.assertRaisesRegex(
AttributeError, "Use `add\(\)` and `pop\(\)`"
AttributeError, r"Use `add\(\)` and `pop\(\)`"
):
model.layers = [layers.Dense(4)]

0 comments on commit d35031c

Please sign in to comment.