Library/ManagedCuda/CudaDNN/CudaDNNContext.cs
/// <summary>
/// This function queries the fields of a previously initialized dropout descriptor.
/// </summary>
/// <param name="dropoutDesc">Previously initialized dropout descriptor.</param>
/// <param name="droupout">The probability with which the value from input is set to 0 during the 
/// dropout layer.</param>
/// <param name="seed">Seed used to initialize random number generator states.</param>
/// <returns>user-allocated GPU memory that holds random number generator states.</returns>
This function queries the fields of a previously initialized dropout descriptor.
This function queries the fields of a previously initialized dropout descriptor .
public CudaDeviceVariable<byte> GetDropoutDescriptor(DropoutDescriptor dropoutDesc, ref float droupout, ref ulong seed)
        {
            CUdeviceptr states = new CUdeviceptr();
            res = CudaDNNNativeMethods.cudnnGetDropoutDescriptor(dropoutDesc.Desc, _handle, ref droupout, ref states, ref seed);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cudnnQueryRuntimeError", res));
            CudaDeviceVariable<byte> ret = new CudaDeviceVariable<byte>(states, false);
            if (res != cudnnStatus.Success) throw new CudaDNNException(res);
            return ret;
        }
public CudaDeviceVariable < byte > GetDropoutDescriptor ( DropoutDescriptor dropoutDesc , ref float droupout , ref ulong seed ) { CUdeviceptr states = new CUdeviceptr ( ) ; res = CudaDNNNativeMethods . cudnnGetDropoutDescriptor ( dropoutDesc . Desc , _handle , ref droupout , ref states , ref seed ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; CudaDeviceVariable < byte > ret = new CudaDeviceVariable < byte > ( states , false ) ; if ( res != cudnnStatus . Success ) throw new CudaDNNException ( res ) ; return ret ; }
This function queries the fields of a previously initialized dropout descriptor.
This function queries the fields of a previously initialized dropout descriptor .
user-allocated GPU memory that holds random number generator states.
user - allocated GPU memory that holds random number generator states .
dropoutDesc
DropoutDescriptor
Previously initialized dropout descriptor.
Previously initialized dropout descriptor .
float
ref
ulong
ref
droupout
The probability with which the value from input is set to 0 during the
dropout layer.
The probability with which the value from input is set to 0 during the dropout layer .
seed
Seed used to initialize random number generator states.
Seed used to initialize random number generator states .