Library/ManagedCuda/CudaDNN/CudaDNNContext.cs
/// <summary>  
/// This function is used to query the amount of space required to store the states of the random number generators used by cudnnDropoutForward function.  
/// </summary>  
This function is used to query the amount of space required to store the states of the random number generators used by cudnnDropoutForward function.
This function is used to query the amount of space required to store the states of the random number generators used by cudnnDropoutForward function .
public SizeT GetDropoutStateSize()
        {
            SizeT sizeInBytes = new SizeT();
            res = CudaDNNNativeMethods.cudnnDropoutGetStatesSize(_handle, ref sizeInBytes);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cudnnDropoutGetStatesSize", res));
            if (res != cudnnStatus.Success) throw new CudaDNNException(res);
            return sizeInBytes;
        }
public SizeT GetDropoutStateSize ( ) { SizeT sizeInBytes = new SizeT ( ) ; res = CudaDNNNativeMethods . cudnnDropoutGetStatesSize ( _handle , ref sizeInBytes ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != cudnnStatus . Success ) throw new CudaDNNException ( res ) ; return sizeInBytes ; }
This function is used to query the amount of space required to store the states of the random number generators used by cudnnDropoutForward function.
This function is used to query the amount of space required to store the states of the random number generators used by cudnnDropoutForward function .