Skip to content

Add default value of parameter of keras softmax. #997

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public partial interface ILayersApi
{
public ILayer ELU(float alpha = 0.1f);
public ILayer SELU();
public ILayer Softmax(int axis = -1);
public ILayer Softmax(Axis axis);
public ILayer Softplus();
public ILayer HardSigmoid();
Expand Down
1 change: 1 addition & 0 deletions src/TensorFlowNET.Keras/Layers/LayersApi.Activation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public ILayer ELU ( float alpha = 0.1f )
=> new ELU(new ELUArgs { Alpha = alpha });
public ILayer SELU ()
=> new SELU(new LayerArgs { });
public ILayer Softmax(int axis = -1) => new Softmax(new SoftmaxArgs { axis = axis });
public ILayer Softmax ( Axis axis ) => new Softmax(new SoftmaxArgs { axis = axis });
public ILayer Softplus () => new Softplus(new LayerArgs { });
public ILayer HardSigmoid () => new HardSigmoid(new LayerArgs { });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void SimpleModelFromSequential()
keras.layers.Flatten(),
keras.layers.Dense(100, "relu"),
keras.layers.Dense(10),
keras.layers.Softmax(1)
keras.layers.Softmax()
});

model.summary();
Expand Down