Skip to content

Commit

Permalink
simpler
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobiasd committed Apr 10, 2024
1 parent 3714bae commit d3bdd91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keras_export/convert_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ def get_model_name(model):

def convert_sequential_to_model(model):
"""Convert a sequential model to the underlying functional format"""
if type(model).__name__ in ['sequential', 'Sequential']:
if type(model).__name__ in ['Sequential']:
name = get_model_name(model)
inbound_nodes = model._inbound_nodes
input_layer = Input(batch_shape=get_layer_input_shape(model.layers[0]))
Expand Down

0 comments on commit d3bdd91

Please sign in to comment.