C# Class ManagedCuda.CudaDNN.DropoutDescriptor

An opaque structure holding the description of a generic n-D dataset.
Inheritance: IDisposable
Show file Open project: kunzmi/managedCuda Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Dispose

DropoutDescriptor ( ManagedCuda.CudaDNN.CudaDNNContext context ) : System

SetDropoutDescriptor ( float dropout, CudaDeviceVariable states, ManagedCuda.BasicTypes.SizeT stateSizeInBytes, ulong seed ) : void

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

Protected Methods

Method Description
Dispose ( bool fDisposing ) : void

For IDisposable

Method Details

Dispose() public method

Dispose
public Dispose ( ) : void
return void

Dispose() protected method

For IDisposable
protected Dispose ( bool fDisposing ) : void
fDisposing bool
return void

DropoutDescriptor() public method

public DropoutDescriptor ( ManagedCuda.CudaDNN.CudaDNNContext context ) : System
context ManagedCuda.CudaDNN.CudaDNNContext
return System

SetDropoutDescriptor() public method

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
public SetDropoutDescriptor ( float dropout, CudaDeviceVariable states, ManagedCuda.BasicTypes.SizeT stateSizeInBytes, ulong seed ) : void
dropout float The probability with which the value from input would be propagated through the dropout layer.
states CudaDeviceVariable Pointer to user-allocated GPU memory that will hold random number generator states.
stateSizeInBytes ManagedCuda.BasicTypes.SizeT Specifies size in bytes of the provided memory for the states.
seed ulong Seed used to initialize random number generator states.
return void