Library/ManagedCuda/CudaDNN/CudaDNNNativeMethods.cs
/// <summary>
/// This function computes the gradient of a pooling operation.
/// </summary>
/// <param name="handle">Handle to a previously created cuDNN context.</param>
/// <param name="poolingDesc">Handle to the previously initialized pooling descriptor.</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="yDesc">Handle to the previously initialized input tensor descriptor.</param>
/// <param name="y">Data pointer to GPU memory associated with the tensor descriptor srcDesc.</param>
/// <param name="dyDesc">Handle to the previously initialized input differential tensor descriptor.</param>
/// <param name="dy">Data pointer to GPU memory associated with the tensor descriptor srcDiffData.</param>
/// <param name="xDesc">Handle to the previously initialized output tensor descriptor.</param>
/// <param name="x">Data pointer to GPU memory associated with the output tensor descriptor destDesc.</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="dxDesc">Handle to the previously initialized output differential tensor descriptor.</param>
/// <param name="dx">Data pointer to GPU memory associated with the output tensor descriptor destDiffDesc.</param>
This function computes the gradient of a pooling operation.
This function computes the gradient of a pooling operation .
[DllImport(CUDNN_API_DLL_NAME)]
		public static extern cudnnStatus cudnnPoolingBackward( cudnnHandle handle,
														cudnnPoolingDescriptor poolingDesc,
														ref float alpha,
														cudnnTensorDescriptor yDesc,
														CUdeviceptr y,
														cudnnTensorDescriptor dyDesc,
														CUdeviceptr dy,
														cudnnTensorDescriptor xDesc,
														CUdeviceptr x,
														ref float beta,
														cudnnTensorDescriptor dxDesc,
														CUdeviceptr dx
													  );
[ DllImport ( CUDNN_API_DLL_NAME ) ] public static extern cudnnStatus cudnnPoolingBackward ( cudnnHandle handle , cudnnPoolingDescriptor poolingDesc , ref float alpha , cudnnTensorDescriptor yDesc , CUdeviceptr y , cudnnTensorDescriptor dyDesc , CUdeviceptr dy , cudnnTensorDescriptor xDesc , CUdeviceptr x , ref float beta , cudnnTensorDescriptor dxDesc , CUdeviceptr dx ) ;
This function computes the gradient of a pooling operation.
This function computes the gradient of a pooling operation .
handle
cudnnHandle
Handle to a previously created cuDNN context.
Handle to a previously created cuDNN context .
poolingDesc
cudnnPoolingDescriptor
Handle to the previously initialized pooling descriptor.
Handle to the previously initialized pooling descriptor .
float
ref
yDesc
cudnnTensorDescriptor
Handle to the previously initialized input tensor descriptor.
Handle to the previously initialized input tensor descriptor .
y
CUdeviceptr
Data pointer to GPU memory associated with the tensor descriptor srcDesc.
Data pointer to GPU memory associated with the tensor descriptor srcDesc .
dyDesc
cudnnTensorDescriptor
Handle to the previously initialized input differential tensor descriptor.
Handle to the previously initialized input differential tensor descriptor .
dy
CUdeviceptr
Data pointer to GPU memory associated with the tensor descriptor srcDiffData.
Data pointer to GPU memory associated with the tensor descriptor srcDiffData .
xDesc
cudnnTensorDescriptor
Handle to the previously initialized output tensor descriptor.
Handle to the previously initialized output tensor descriptor .
x
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 .
dxDesc
cudnnTensorDescriptor
Handle to the previously initialized output differential tensor descriptor.
Handle to the previously initialized output differential tensor descriptor .
dx
CUdeviceptr
Data pointer to GPU memory associated with the output tensor descriptor destDiffDesc.
Data pointer to GPU memory associated with the output tensor descriptor destDiffDesc .
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 .