Skip to content

Commit 865062f

Browse files
fix string formatting issue
1 parent f1671dc commit 865062f

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

keras/src/applications/densenet.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,6 @@ def decode_predictions(preds, top=5):
487487
A Keras model instance.
488488
"""
489489

490-
setattr(DenseNet121, "__doc__", (DenseNet121.__doc__ or '') + DOC)
491-
setattr(DenseNet169, "__doc__", (DenseNet169.__doc__ or '') + DOC)
492-
setattr(DenseNet201, "__doc__", (DenseNet201.__doc__ or '') + DOC)
490+
setattr(DenseNet121, "__doc__", (DenseNet121.__doc__ or "") + DOC)
491+
setattr(DenseNet169, "__doc__", (DenseNet169.__doc__ or "") + DOC)
492+
setattr(DenseNet201, "__doc__", (DenseNet201.__doc__ or "") + DOC)

keras/src/optimizers/adam.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ def get_config(self):
148148
)
149149
return config
150150

151+
151152
if Adam.__doc__ is not None:
152153
Adam.__doc__ = Adam.__doc__.replace(
153154
"{{base_optimizer_keyword_args}}", optimizer.base_optimizer_keyword_args

keras/src/optimizers/ftrl.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ def get_config(self):
233233
)
234234
return config
235235

236+
236237
if Ftrl.__doc__ is not None:
237238
Ftrl.__doc__ = Ftrl.__doc__.replace(
238239
"{{base_optimizer_keyword_args}}", optimizer.base_optimizer_keyword_args

0 commit comments

Comments
 (0)