Library/ManagedCuda/CudaDNN/CudaDNNNativeMethods.cs
/// <summary>
/// This routine applies a specified neuron activation function element-wise over each input value.
/// </summary>
/// <param name="handle">Handle to a previously created cuDNN context.</param>
/// <param name="activationDesc">Handle to the previously created activation descriptor object.</param>
/// <param name="alpha">Pointer to scaling factors (in host memory) used to blend the computation
/// result with prior value in the output layer as follows: dstValue =
/// alpha[0]*result + beta[0]*priorDstValue. Please refer to this section for
/// additional details.</param>
/// <param name="xDesc">Handle to the previously initialized input tensor descriptor.</param>
/// <param name="x">Data pointer to GPU memory associated with the tensor descriptor srcDesc.</param>
/// <param name="beta">Pointer to scaling factors (in host memory) used to blend the computation
/// result with prior value in the output layer as follows: dstValue =
/// alpha[0]*result + beta[0]*priorDstValue. Please refer to this section for
/// additional details.</param>
/// <param name="yDesc">Handle to the previously initialized output tensor descriptor.</param>
/// <param name="y">Data pointer to GPU memory associated with the output tensor descriptor destDesc.</param>
This routine applies a specified neuron activation function element-wise over each input value.
This routine applies a specified neuron activation function element - wise over each input value .
[DllImport(CUDNN_API_DLL_NAME)]
        public static extern cudnnStatus cudnnActivationForward( cudnnHandle handle,
                                                          cudnnActivationDescriptor activationDesc,
                                                          ref double alpha,
														  cudnnTensorDescriptor xDesc,
														  CUdeviceptr x,
														  ref double beta,
														  cudnnTensorDescriptor yDesc,
														  CUdeviceptr y
														);
[ DllImport ( CUDNN_API_DLL_NAME ) ] public static extern cudnnStatus cudnnActivationForward ( cudnnHandle handle , cudnnActivationDescriptor activationDesc , ref double alpha , cudnnTensorDescriptor xDesc , CUdeviceptr x , ref double beta , cudnnTensorDescriptor yDesc , CUdeviceptr y ) ;
This routine applies a specified neuron activation function element-wise over each input value.
This routine applies a specified neuron activation function element - wise over each input value .
handle
cudnnHandle
Handle to a previously created cuDNN context.
Handle to a previously created cuDNN context .
activationDesc
cudnnActivationDescriptor
Handle to the previously created activation descriptor object.
Handle to the previously created activation descriptor object .
double
ref
xDesc
cudnnTensorDescriptor
Handle to the previously initialized input tensor descriptor.
Handle to the previously initialized input tensor descriptor .
x
CUdeviceptr
Data pointer to GPU memory associated with the tensor descriptor srcDesc.
Data pointer to GPU memory associated with the tensor descriptor srcDesc .
yDesc
cudnnTensorDescriptor
Handle to the previously initialized output tensor descriptor.
Handle to the previously initialized output tensor descriptor .
y
CUdeviceptr
Data pointer to GPU memory associated with the output tensor descriptor destDesc.
Data pointer to GPU memory associated with the output tensor descriptor destDesc .
alpha
Pointer to scaling factors (in host memory) used to blend the computation
result with prior value in the output layer as follows: dstValue
alpha[0]*result + beta[0]*priorDstValue. Please refer to this section for
additional details.
Pointer to scaling factors ( in host memory ) used to blend the computation result with prior value in the output layer as follows : dstValue alpha [ 0 ] * result + beta [ 0 ] * priorDstValue . Please refer to this section for additional details .
beta
Pointer to scaling factors (in host memory) used to blend the computation
result with prior value in the output layer as follows: dstValue
alpha[0]*result + beta[0]*priorDstValue. Please refer to this section for
additional details.
Pointer to scaling factors ( in host memory ) used to blend the computation result with prior value in the output layer as follows : dstValue alpha [ 0 ] * result + beta [ 0 ] * priorDstValue . Please refer to this section for additional details .