Library/ManagedCuda/CudaDNN/CudaDNNContext.cs
/// <summary>
/// This function restores a dropout descriptor to a previously saved-off state.
/// </summary>
/// <param name="dropoutDesc">Previously created dropout descriptor.</param>
/// <param name="droupout">Probability with which the value from an input tensor is set to 0 when performing dropout.</param>
/// <param name="seed">Seed used in prior call to cudnnSetDropoutDescriptor that initialized
/// #states' buffer. Using a different seed from this has no effect. A change of seed, and subsequent update to random number generator states can be achieved by calling
/// cudnnSetDropoutDescriptor.</param>
/// <param name="states">Pointer to GPU memory that holds random number generator states initialized by a prior call to cudnnSetDropoutDescriptor.</param>
This function restores a dropout descriptor to a previously saved-off state.
This function restores a dropout descriptor to a previously saved - off state .
public void RestoreDropoutDescriptor(DropoutDescriptor dropoutDesc, CudaDeviceVariable<byte> states, ref float droupout, ref ulong seed)
        {
            res = CudaDNNNativeMethods.cudnnRestoreDropoutDescriptor(dropoutDesc.Desc, _handle, droupout, states.DevicePointer, states.SizeInBytes, seed);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cudnnRestoreDropoutDescriptor", res));
            if (res != cudnnStatus.Success) throw new CudaDNNException(res);
        }
public void RestoreDropoutDescriptor ( DropoutDescriptor dropoutDesc , CudaDeviceVariable < byte > states , ref float droupout , ref ulong seed ) { res = CudaDNNNativeMethods . cudnnRestoreDropoutDescriptor ( dropoutDesc . Desc , _handle , droupout , states . DevicePointer , states . SizeInBytes , seed ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != cudnnStatus . Success ) throw new CudaDNNException ( res ) ; }
This function restores a dropout descriptor to a previously saved-off state.
This function restores a dropout descriptor to a previously saved - off state .
dropoutDesc
DropoutDescriptor
Previously created dropout descriptor.
Previously created dropout descriptor .
states
CudaDeviceVariable<byte>
Pointer to GPU memory that holds random number generator states initialized by a prior call to cudnnSetDropoutDescriptor.
Pointer to GPU memory that holds random number generator states initialized by a prior call to cudnnSetDropoutDescriptor .
float
ref
ulong
ref
droupout
Probability with which the value from an input tensor is set to 0 when performing dropout.
Probability with which the value from an input tensor is set to 0 when performing dropout .
seed
Seed used in prior call to cudnnSetDropoutDescriptor that initialized
states' buffer. Using a different seed from this has no effect. A change of seed, and subsequent update to random number generator states can be achieved by calling
cudnnSetDropoutDescriptor.
Seed used in prior call to cudnnSetDropoutDescriptor that initialized states ' buffer . Using a different seed from this has no effect . A change of seed and subsequent update to random number generator states can be achieved by calling cudnnSetDropoutDescriptor .