MyCaffe  1.12.2.41
Deep learning software for Windows C# programmers.
MyCaffe.common.ActionStateArgs< T > Class Template Reference

The ActionStateArgs are sent to the DoWork event when fired from the InternalThreadEntry. More...

Inheritance diagram for MyCaffe.common.ActionStateArgs< T >:

Public Member Functions

 ActionStateArgs (CudaDnn< T > cuda, Log log, CancelEvent evtCancel, int nDeviceID=0, object arg=null, int nInitialDelay=0)
 The ActionStateArgs constructor. More...
 

Properties

CudaDnn< T > cuda [getset]
 Get/set the Cuda Dnn connection to Cuda. More...
 
Log log [get]
 Returns the Log used for output. More...
 
CancelEvent CancelEvent [get]
 Returns the CancelEvent used to cancel the thread. More...
 
int DeviceID [get]
 Returns the Device ID of the device to use in the thread. More...
 
object Arg [get]
 Returns the user supplied argument. More...
 
int InitialDelay [get]
 Returns the initial delay in ms (if any). More...
 

Detailed Description

The ActionStateArgs are sent to the DoWork event when fired from the InternalThreadEntry.

Template Parameters
TSpecifies the base type float or double. Using float is recommended to conserve GPU memory.

Definition at line 194 of file InternalThread.cs.

Constructor & Destructor Documentation

◆ ActionStateArgs()

MyCaffe.common.ActionStateArgs< T >.ActionStateArgs ( CudaDnn< T >  cuda,
Log  log,
CancelEvent  evtCancel,
int  nDeviceID = 0,
object  arg = null,
int  nInitialDelay = 0 
)

The ActionStateArgs constructor.

Parameters
cudaSpecifies the CudaDnn connection to Cuda.
logSpecifies the Log for output.
evtCancelSpecifies the CancelEvent that when Set signals to DoWork that it should terminate.
nDeviceIDOptionally, specifies the DeviceID.
argOptionally, specifies an argument defined by the caller.
nInitialDelayOptionally, specifies an initial delay for the thread in ms. (default = 0).

Definition at line 212 of file InternalThread.cs.

Property Documentation

◆ Arg

object MyCaffe.common.ActionStateArgs< T >.Arg
get

Returns the user supplied argument.

Definition at line 259 of file InternalThread.cs.

◆ CancelEvent

Returns the CancelEvent used to cancel the thread.

Definition at line 243 of file InternalThread.cs.

◆ cuda

Get/set the Cuda Dnn connection to Cuda.

Definition at line 226 of file InternalThread.cs.

◆ DeviceID

int MyCaffe.common.ActionStateArgs< T >.DeviceID
get

Returns the Device ID of the device to use in the thread.

Definition at line 251 of file InternalThread.cs.

◆ InitialDelay

int MyCaffe.common.ActionStateArgs< T >.InitialDelay
get

Returns the initial delay in ms (if any).

Definition at line 267 of file InternalThread.cs.

◆ log

Returns the Log used for output.

Definition at line 235 of file InternalThread.cs.


The documentation for this class was generated from the following file: