Library/ManagedCuda/CudaDNN/CudaDNNNativeMethods.cs
/// <summary>
/// This function performs forward dropout operation over x returning results in y. If dropout was 
/// used as a parameter to cudnnSetDropoutDescriptor, the approximately dropout fraction of x values 
/// will be replaces by 0, and the rest will be scaled by 1/(1-dropout) This function should not be 
/// running concurrently with another cudnnDropoutForward function using the same states.
/// </summary>
/// <param name="handle">Handle to a previously created cuDNN context.</param>
/// <param name="dropoutDesc">Previously created dropout descriptor object.</param>
/// <param name="xdesc">Handle to a previously initialized tensor descriptor.</param>
/// <param name="x">Pointer to data of the tensor described by the xDesc descriptor.</param>
/// <param name="ydesc">Handle to a previously initialized tensor descriptor.</param>
/// <param name="y">Pointer to data of the tensor described by the yDesc descriptor.</param>
/// <param name="reserveSpace">Pointer to user-allocated GPU memory used by this function. It is expected that contents of reserveSpace doe not change between cudnnDropoutForward and cudnnDropoutBackward calls.</param>
/// <param name="reserveSpaceSizeInBytes">Specifies size in bytes of the provided memory for the reserve space.</param>
This function performs forward dropout operation over x returning results in y. If dropout was
used as a parameter to cudnnSetDropoutDescriptor, the approximately dropout fraction of x values
will be replaces by 0, and the rest will be scaled by 1/(1-dropout) This function should not be
running concurrently with another cudnnDropoutForward function using the same states.
This function performs forward dropout operation over x returning results in y . If dropout was used as a parameter to cudnnSetDropoutDescriptor the approximately dropout fraction of x values will be replaces by 0 and the rest will be scaled by 1 / ( 1 - dropout ) This function should not be running concurrently with another cudnnDropoutForward function using the same states .
[DllImport(CUDNN_API_DLL_NAME)]
        public static extern cudnnStatus cudnnDropoutForward(cudnnHandle handle,
                                                      cudnnDropoutDescriptor dropoutDesc,
                                                      cudnnTensorDescriptor xdesc,
                                                      CUdeviceptr x,
                                                      cudnnTensorDescriptor ydesc,
                                                      CUdeviceptr y,
                                                      CUdeviceptr reserveSpace,
                                                      SizeT reserveSpaceSizeInBytes);
[ DllImport ( CUDNN_API_DLL_NAME ) ] public static extern cudnnStatus cudnnDropoutForward ( cudnnHandle handle , cudnnDropoutDescriptor dropoutDesc , cudnnTensorDescriptor xdesc , CUdeviceptr x , cudnnTensorDescriptor ydesc , CUdeviceptr y , CUdeviceptr reserveSpace , SizeT reserveSpaceSizeInBytes ) ;
This function performs forward dropout operation over x returning results in y.
This function performs forward dropout operation over x returning results in y .
handle
cudnnHandle
Handle to a previously created cuDNN context.
Handle to a previously created cuDNN context .
dropoutDesc
cudnnDropoutDescriptor
Previously created dropout descriptor object.
Previously created dropout descriptor object .
xdesc
cudnnTensorDescriptor
Handle to a previously initialized tensor descriptor.
Handle to a previously initialized tensor descriptor .
x
CUdeviceptr
Pointer to data of the tensor described by the xDesc descriptor.
Pointer to data of the tensor described by the xDesc descriptor .
ydesc
cudnnTensorDescriptor
Handle to a previously initialized tensor descriptor.
Handle to a previously initialized tensor descriptor .
y
CUdeviceptr
Pointer to data of the tensor described by the yDesc descriptor.
Pointer to data of the tensor described by the yDesc descriptor .
reserveSpace
CUdeviceptr
Pointer to user-allocated GPU memory used by this function. It is expected that contents of reserveSpace doe not change between cudnnDropoutForward and cudnnDropoutBackward calls.
Pointer to user - allocated GPU memory used by this function . It is expected that contents of reserveSpace doe not change between cudnnDropoutForward and cudnnDropoutBackward calls .
reserveSpaceSizeInBytes
SizeT
Specifies size in bytes of the provided memory for the reserve space.
Specifies size in bytes of the provided memory for the reserve space .