Library/ManagedCuda/CudaDNN/ActivationDescriptor.cs
/// <summary>
/// This function queries the parameters of the previouly initialized 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 queries the parameters of the previouly initialized activation descriptor object.
This function queries the parameters of the previouly initialized activation descriptor object .
public void GetActivationDescriptor( ref cudnnActivationMode mode,
                                ref cudnnNanPropagation reluNanOpt,
                                ref double coef)
        {
            res = CudaDNNNativeMethods.cudnnGetActivationDescriptor(_desc, ref mode, ref reluNanOpt, ref coef);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cudnnGetActivationDescriptor", res));
            if (res != cudnnStatus.Success) throw new CudaDNNException(res);
        }
public void GetActivationDescriptor ( ref cudnnActivationMode mode , ref cudnnNanPropagation reluNanOpt , ref double coef ) { res = CudaDNNNativeMethods . cudnnGetActivationDescriptor ( _desc , ref mode , ref reluNanOpt , ref coef ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != cudnnStatus . Success ) throw new CudaDNNException ( res ) ; }
This function queries the parameters of the previouly initialized activation descriptor object.
This function queries the parameters of the previouly initialized activation descriptor object .
cudnnActivationMode
ref
cudnnNanPropagation
ref
double
ref
mode
Enumerant to specify the activation mode.
Enumerant to specify the activation mode .
reluNanOpt
Nan propagation option for the relu.
Nan propagation option for the relu .
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.
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 .