Skip to content

Commit

Permalink
Update sequential check
Browse files Browse the repository at this point in the history
  • Loading branch information
Frightera committed May 7, 2023
1 parent 529f968 commit d1acddb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keras/engine/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -4387,7 +4387,7 @@ def _validate_softmax_output(model_instance):
"""

if isinstance(model_instance, tf.keras.Sequential):
if model_instance.__class__.__name__.lower() == "sequential":
output = model_instance.layers[-1]
check_sequential_output_activation(output)

Expand Down

0 comments on commit d1acddb

Please sign in to comment.