You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

LayersApi.Activation.cs 1.1 kB

1234567891011121314151617181920212223
  1. using Tensorflow.NumPy;
  2. using System.Collections.Generic;
  3. using Tensorflow.Keras.ArgsDefinition;
  4. using Tensorflow.Keras.Engine;
  5. using static Tensorflow.Binding;
  6. using static Tensorflow.KerasApi;
  7. namespace Tensorflow.Keras.Layers {
  8. public partial class LayersApi {
  9. public ILayer ELU ( float alpha = 0.1f )
  10. => new ELU(new ELUArgs { Alpha = alpha });
  11. public ILayer SELU ()
  12. => new SELU(new LayerArgs { });
  13. public ILayer Softmax(int axis = -1) => new Softmax(new SoftmaxArgs { axis = axis });
  14. public ILayer Softmax ( Axis axis ) => new Softmax(new SoftmaxArgs { axis = axis });
  15. public ILayer Softplus () => new Softplus(new LayerArgs { });
  16. public ILayer HardSigmoid () => new HardSigmoid(new LayerArgs { });
  17. public ILayer Softsign () => new Softsign(new LayerArgs { });
  18. public ILayer Swish () => new Swish(new LayerArgs { });
  19. public ILayer Tanh () => new Tanh(new LayerArgs { });
  20. public ILayer Exponential () => new Exponential(new LayerArgs { });
  21. }
  22. }