Beispiel #1
0
 /// <inheritdoc/>
 Tensor IOps.HardSigmoid(Tensor X, float alpha, float beta)
 {
     LogLayerSummary(X.shape + " ()");
     var O = m_Ops.HardSigmoid(X, alpha, beta);
     LogOutputTensorSummary(O, Prefix + "HardSigmoid");
     return O;
 }
Beispiel #2
0
        /// <inheritdoc/>
        Tensor IOps.HardSigmoid(Tensor X, float alpha, float beta)
        {
            var Y = m_Ops1.HardSigmoid(X, alpha, beta);
            var Z = m_Ops2.HardSigmoid(X, alpha, beta);

            CheckSame(Y, Z, Layer.Type.Activation + " " + Layer.Activation.HardSigmoid);
            return(Y);
        }
Beispiel #3
0
 /// <inheritdoc/>
 Tensor IOps.HardSigmoid(Tensor X, float alpha, float beta)
 {
     Elementwise(X, Transcendental.Trigonometric);
     RegisterLayerStats();
     return(m_Ops.HardSigmoid(X, alpha, beta));
 }