Class ReluDerivative
java.lang.Object
dk.alexandra.fresco.stat.mlp.activationfunction.ReluDerivative
- All Implemented Interfaces:
dk.alexandra.fresco.framework.builder.Computation<dk.alexandra.fresco.lib.fixed.SFixed,dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric>
public class ReluDerivative extends Object implements dk.alexandra.fresco.framework.builder.Computation<dk.alexandra.fresco.lib.fixed.SFixed,dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric>
Compute the derivative of the
Relu function, eg. f'(x) = 1 if x > 0 and f(x) = 0
otherwise.-
Constructor Summary
Constructors Constructor Description ReluDerivative(dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed> x) -
Method Summary
Modifier and Type Method Description dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>buildComputation(dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric root)
-
Constructor Details
-
ReluDerivative
public ReluDerivative(dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed> x)
-
-
Method Details
-
buildComputation
public dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed> buildComputation(dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric root)- Specified by:
buildComputationin interfacedk.alexandra.fresco.framework.builder.Computation<dk.alexandra.fresco.lib.fixed.SFixed,dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric>
-