Class ActivationDescriptor
Inheritance
Implements
Inherited Members
Namespace: ManagedCuda.CudaDNN
Assembly: CudaDNN.dll
Syntax
public class ActivationDescriptor : IDisposable
Constructors
| Improve this Doc View SourceActivationDescriptor()
An opaque structure holding the description of an activation operation.
Declaration
public ActivationDescriptor()
Properties
| Improve this Doc View SourceDesc
Returns the inner handle.
Declaration
public cudnnActivationDescriptor Desc { get; }
Property Value
Type | Description |
---|---|
cudnnActivationDescriptor |
Methods
| Improve this Doc View SourceDispose()
Dispose
Declaration
public void Dispose()
Dispose(Boolean)
For IDisposable
Declaration
protected virtual void Dispose(bool fDisposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | fDisposing |
Finalize()
For dispose
Declaration
protected void Finalize()
GetActivationDescriptor(ref cudnnActivationMode, ref cudnnNanPropagation, ref Double)
This function queries the parameters of the previouly initialized activation descriptor object.
Declaration
public void GetActivationDescriptor(ref cudnnActivationMode mode, ref cudnnNanPropagation reluNanOpt, ref double coef)
Parameters
Type | Name | Description |
---|---|---|
cudnnActivationMode | mode | Enumerant to specify the activation mode. |
cudnnNanPropagation | reluNanOpt | Nan propagation option for the relu. |
System.Double | 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. |
SetActivationDescriptor(cudnnActivationMode, cudnnNanPropagation, Double)
This function initializes then previously created activation descriptor object.
Declaration
public void SetActivationDescriptor(cudnnActivationMode mode, cudnnNanPropagation reluNanOpt, double coef)
Parameters
Type | Name | Description |
---|---|---|
cudnnActivationMode | mode | Enumerant to specify the activation mode. |
cudnnNanPropagation | reluNanOpt | Nan propagation option for the relu. |
System.Double | 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. |