Skip to content

Commit

Permalink
small fix transferlearn set output activation
Browse files Browse the repository at this point in the history
  • Loading branch information
erceksi committed Sep 23, 2024
1 parent ac84f35 commit 3e0d53a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crested/tl/_crested.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ def transferlearn(
old_activation_layer = base_model.layers[-1]
if set_output_activation is None:
old_activation = old_activation_layer.activation
else set_output_activation:
elif set_output_activation:
old_activation = keras.activations.get(set_output_activation)

x = base_model.layers[-3].output
Expand Down

0 comments on commit 3e0d53a

Please sign in to comment.