Skip to content

Commit ebd6940

Browse files
committed
Reformatting using format.sh
1 parent 71eaa69 commit ebd6940

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

keras/applications/applications_test.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,9 @@ def test_application_pooling(self, app, last_dim):
193193

194194
@parameterized.parameters(MODEL_LIST)
195195
def test_application_classifier_activation(self, app):
196-
model = app(weights=None, include_top=True, classifier_activation="softmax")
196+
model = app(
197+
weights=None, include_top=True, classifier_activation="softmax"
198+
)
197199
last_layer_act = model.layers[-1].activation.__name__
198200
self.assertEqual(last_layer_act, "softmax")
199201

@@ -225,7 +227,7 @@ def test_application_variable_input_channels(self, app, last_dim):
225227

226228
@parameterized.parameters(*MOBILENET_V3_FOR_WEIGHTS)
227229
def test_mobilenet_v3_load_weights(
228-
self, mobilenet_class, alpha, minimalistic, include_top
230+
self, mobilenet_class, alpha, minimalistic, include_top
229231
):
230232
mobilenet_class(
231233
input_shape=(224, 224, 3),

keras/applications/convnext.py

+10-6
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,11 @@ def apply(x):
343343
x = layers.LayerNormalization(
344344
epsilon=1e-6, name=name + "_head_layernorm"
345345
)(x)
346-
x = layers.Dense(num_classes,
347-
activation=classifier_activation,
348-
name=name + "_head_dense")(x)
346+
x = layers.Dense(
347+
num_classes,
348+
activation=classifier_activation,
349+
name=name + "_head_dense",
350+
)(x)
349351
return x
350352

351353
return apply
@@ -526,9 +528,11 @@ def ConvNeXt(
526528

527529
if include_top:
528530
imagenet_utils.validate_activation(classifier_activation, weights)
529-
x = Head(num_classes=classes,
530-
classifier_activation=classifier_activation,
531-
name=model_name)(x)
531+
x = Head(
532+
num_classes=classes,
533+
classifier_activation=classifier_activation,
534+
name=model_name,
535+
)(x)
532536

533537
else:
534538
if pooling == "avg":

0 commit comments

Comments
 (0)