Library/ManagedCuda/CudaDNN/CudaDNNNativeMethods.cs
/// <summary>
/// This function performs backward dropout operation over dy returning results in dx. If during 
/// forward dropout operation value from x was propagated to y then during backward operation value 
/// from dy will be propagated to dx, otherwise, dx value will be set to 0.
/// </summary>
/// <param name="handle">Handle to a previously created cuDNN context.</param>
/// <param name="dropoutDesc">Previously created dropout descriptor object.</param>
/// <param name="dydesc">Handle to a previously initialized tensor descriptor.</param>
/// <param name="dy">Pointer to data of the tensor described by the dyDesc descriptor.</param>
/// <param name="dxdesc">Handle to a previously initialized tensor descriptor.</param>
/// <param name="dx">Pointer to data of the tensor described by the dxDesc descriptor.</param>
/// <param name="reserveSpace">Pointer to user-allocated GPU memory used by this function. It is expected that reserveSpace was populated during a call to cudnnDropoutForward and has not been changed.</param>
/// <param name="reserveSpaceSizeInBytes">Specifies size in bytes of the provided memory for the reserve space.</param>
This function performs backward dropout operation over dy returning results in dx. If during
forward dropout operation value from x was propagated to y then during backward operation value
from dy will be propagated to dx, otherwise, dx value will be set to 0.
This function performs backward dropout operation over dy returning results in dx . If during forward dropout operation value from x was propagated to y then during backward operation value from dy will be propagated to dx otherwise dx value will be set to 0 .
[DllImport(CUDNN_API_DLL_NAME)]
        public static extern cudnnStatus cudnnDropoutBackward(cudnnHandle handle,
                                               cudnnDropoutDescriptor dropoutDesc,
                                               cudnnTensorDescriptor dydesc,
                                               CUdeviceptr dy,
                                               cudnnTensorDescriptor dxdesc,
                                               CUdeviceptr dx,
                                               CUdeviceptr reserveSpace,
                                               SizeT reserveSpaceSizeInBytes);
[ DllImport ( CUDNN_API_DLL_NAME ) ] public static extern cudnnStatus cudnnDropoutBackward ( cudnnHandle handle , cudnnDropoutDescriptor dropoutDesc , cudnnTensorDescriptor dydesc , CUdeviceptr dy , cudnnTensorDescriptor dxdesc , CUdeviceptr dx , CUdeviceptr reserveSpace , SizeT reserveSpaceSizeInBytes ) ;
This function performs backward dropout operation over dy returning results in dx.
This function performs backward dropout operation over dy returning results in dx .
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 .
dydesc
cudnnTensorDescriptor
Handle to a previously initialized tensor descriptor.
Handle to a previously initialized tensor descriptor .
dy
CUdeviceptr
Pointer to data of the tensor described by the dyDesc descriptor.
Pointer to data of the tensor described by the dyDesc descriptor .
dxdesc
cudnnTensorDescriptor
Handle to a previously initialized tensor descriptor.
Handle to a previously initialized tensor descriptor .
dx
CUdeviceptr
Pointer to data of the tensor described by the dxDesc descriptor.
Pointer to data of the tensor described by the dxDesc descriptor .
reserveSpace
CUdeviceptr
Pointer to user-allocated GPU memory used by this function. It is expected that reserveSpace was populated during a call to cudnnDropoutForward and has not been changed.
Pointer to user - allocated GPU memory used by this function . It is expected that reserveSpace was populated during a call to cudnnDropoutForward and has not been changed .
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 .