Skip to content

Commit

Permalink
standard input_shape if include_top is false (#18954)
Browse files Browse the repository at this point in the history
  • Loading branch information
yashsinghcodes authored Dec 17, 2023
1 parent d550552 commit 565953a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions keras/applications/nasnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,8 @@ def NASNetMobile(
"at this time due to an outstanding bug. "
"If interested, please open a PR."
)
if (include_top == False) and (input_shape == None):
input_shape = (224, 224, 3)
return NASNet(
input_shape,
penultimate_filters=1056,
Expand Down

0 comments on commit 565953a

Please sign in to comment.