Skip to content

Commit

Permalink
Is it working with Keras
Browse files Browse the repository at this point in the history
  • Loading branch information
pobonomo committed Dec 4, 2024
1 parent 46531fb commit 172c02a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gurobi_ml/keras/keras.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def _mip_model(self, **kwargs):
output = self._output
if isinstance(step, keras.layers.InputLayer):
pass
elif isinstance(step, keras.layers.ReLU):
elif isinstance(step, (keras.layers.ReLU, keras.layers.Softmax)):
layer = self._add_activation_layer(
_input, self.act_dict["relu"](), output, name=f"relu{i}", **kwargs
)
Expand Down

0 comments on commit 172c02a

Please sign in to comment.