Library/ManagedCuda/CudaDNN/CudaDNNNativeMethods.cs
/// <summary>
/// This function initializes a previously created dropout descriptor object. If states argument is equal to 
/// NULL, random number generator states won't be initialized, and only dropout value will be set. No other 
/// function should be writing to the memory
/// </summary>
/// <param name="dropoutDesc">Previously created dropout descriptor object.</param>
/// <param name="handle">Handle to a previously created cuDNN context.</param>
/// <param name="dropout">The probability with which the value from input would be propagated through the dropout layer.</param>
/// <param name="states">Pointer to user-allocated GPU memory that will hold random number generator states.</param>
/// <param name="stateSizeInBytes">Specifies size in bytes of the provided memory for the states.</param>
/// <param name="seed">Seed used to initialize random number generator states.</param>
This function initializes a previously created dropout descriptor object. If states argument is equal to
NULL, random number generator states won't be initialized, and only dropout value will be set. No other
function should be writing to the memory
This function initializes a previously created dropout descriptor object . If states argument is equal to NULL random number generator states won ' t be initialized and only dropout value will be set . No other function should be writing to the memory
[DllImport(CUDNN_API_DLL_NAME)]
        public static extern cudnnStatus cudnnSetDropoutDescriptor(cudnnDropoutDescriptor dropoutDesc,
                                                            cudnnHandle handle,
                                                            float dropout,
                                                            CUdeviceptr states,
                                                            SizeT stateSizeInBytes,
                                                            ulong seed);
[ DllImport ( CUDNN_API_DLL_NAME ) ] public static extern cudnnStatus cudnnSetDropoutDescriptor ( cudnnDropoutDescriptor dropoutDesc , cudnnHandle handle , float dropout , CUdeviceptr states , SizeT stateSizeInBytes , ulong seed ) ;
This function initializes a previously created dropout descriptor object.
This function initializes a previously created dropout descriptor object .
dropoutDesc
cudnnDropoutDescriptor
Previously created dropout descriptor object.
Previously created dropout descriptor object .
handle
cudnnHandle
Handle to a previously created cuDNN context.
Handle to a previously created cuDNN context .
dropout
float
The probability with which the value from input would be propagated through the dropout layer.
The probability with which the value from input would be propagated through the dropout layer .
states
CUdeviceptr
Pointer to user-allocated GPU memory that will hold random number generator states.
Pointer to user - allocated GPU memory that will hold random number generator states .
stateSizeInBytes
SizeT
Specifies size in bytes of the provided memory for the states.
Specifies size in bytes of the provided memory for the states .
seed
ulong
Seed used to initialize random number generator states.
Seed used to initialize random number generator states .