Library/ManagedCuda/CudaDNN/ActivationDescriptor.cs
///<summary>
/// This function initializes then previously created activation descriptor object.
/// </summary>
/// <param name="mode">Enumerant to specify the activation mode.</param>
/// <param name="reluNanOpt">Nan propagation option for the relu.</param>
/// <param name="coef">floating point number to specify the clipping threashold when the activation
/// mode is set to CUDNN_ACTIVATION_CLIPPED_RELU or to specify the alpha
/// coefficient when the activation mode is set to CUDNN_ACTIVATION_ELU.</param>
This function initializes then previously created activation descriptor object.
This function initializes then previously created activation descriptor object .
public void SetActivationDescriptor(cudnnActivationMode mode, 
                                    cudnnNanPropagation reluNanOpt, 
                                    double coef)
        {
            res = CudaDNNNativeMethods.cudnnSetActivationDescriptor(_desc, mode, reluNanOpt, coef);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cudnnSetActivationDescriptor", res));
            if (res != cudnnStatus.Success) throw new CudaDNNException(res);
        }
public void SetActivationDescriptor ( cudnnActivationMode mode , cudnnNanPropagation reluNanOpt , double coef ) { res = CudaDNNNativeMethods . cudnnSetActivationDescriptor ( _desc , mode , reluNanOpt , coef ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != cudnnStatus . Success ) throw new CudaDNNException ( res ) ; }
This function initializes then previously created activation descriptor object.
This function initializes then previously created activation descriptor object .
mode
cudnnActivationMode
Enumerant to specify the activation mode.
Enumerant to specify the activation mode .
reluNanOpt
cudnnNanPropagation
Nan propagation option for the relu.
Nan propagation option for the relu .
coef
double
floating point number to specify the clipping threashold when the activation
mode is set to CUDNN_ACTIVATION_CLIPPED_RELU or to specify the alpha
coefficient when the activation mode is set to CUDNN_ACTIVATION_ELU.
floating point number to specify the clipping threashold when the activation mode is set to CUDNN_ACTIVATION_CLIPPED_RELU or to specify the alpha coefficient when the activation mode is set to CUDNN_ACTIVATION_ELU .