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.

Sigmoid.cs 594 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using Tensorflow.Keras.ArgsDefinition;
  5. using Tensorflow.Keras.Engine;
  6. using static Tensorflow.Binding;
  7. namespace Tensorflow.Keras.Layers
  8. {
  9. /// <summary>
  10. /// Leaky version of a Rectified Linear Unit.
  11. /// </summary>
  12. public class Sigmoid : Layer
  13. {
  14. public Sigmoid(LayerArgs args) : base(args)
  15. {
  16. }
  17. protected override Tensors Call(Tensors inputs, Tensor state = null, bool is_training = false)
  18. {
  19. return tf.nn.sigmoid(inputs, name: Name);
  20. }
  21. }
  22. }