|
- using System;
- using System.Collections.Generic;
- using System.Text;
- using Tensorflow.Keras.ArgsDefinition;
- using Tensorflow.Keras.Engine;
- using Tensorflow.Common.Types;
- using static Tensorflow.Binding;
-
- namespace Tensorflow.Keras.Layers
- {
- /// <summary>
- /// Leaky version of a Rectified Linear Unit.
- /// </summary>
- public class LeakyReLu : Layer
- {
- LeakyReLuArgs args;
- float alpha => args.Alpha;
- public LeakyReLu(LeakyReLuArgs args) : base(args)
- {
- this.args = args;
- }
-
- <<<<<<< HEAD
- <<<<<<< HEAD
- protected override Tensors Call(Tensors inputs, Tensors state = null, bool? training = null, IOptionalArgs? optional_args = null)
- =======
- protected override Tensors Call(Tensors inputs, Tensor mask = null, bool? training = null, Tensors initial_state = null, Tensors constants = null)
- >>>>>>> master
- =======
- protected override Tensors Call(Tensors inputs, Tensors state = null, bool? training = null, IOptionalArgs? optional_args = null)
- >>>>>>> 90a65d7d98b92f26574ac32392ed802a57d4d2c8
- {
- return tf.nn.leaky_relu(inputs, alpha: alpha);
- }
- }
- }
|