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

The DebugInformation contains information used to help debug the Layers of a Net while it is training. More...

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

Public Member Functions

 DebugInformation (string strName, Blob< T > work, bool bDetectNans)
 The DebugInformation constructor. More...
 
void Dispose ()
 Releases the memory (GPU and Host) used by the DebugInformation including the Workspace. More...
 
LayerDebugInformation< T > FindLayer (string strLayer)
 Searches for the named layer. More...
 
void Add (Layer< T > layer, BlobCollection< T > colBottomBlobs, BlobCollection< T > colTopBlobs)
 Adds a Layer and its Bottom and Top blob collections. More...
 
bool Compare (DebugInformation< T > dbg)
 Compares this DebugInformation to another. More...
 
string DetectFirstNaN (out string strType)
 Searches for the first NaN within any of the Layers. More...
 
string DetectLastNaN (out string strType)
 Searches for the last NaN within any of the Layers. More...
 
override string ToString ()
 Returns a string representation of the DebugInformation. More...
 

Properties

string Name [get]
 Returns the name of the DebugInformation. More...
 
double ExtraInfo [getset]
 Get/set extra information about the DebugInformation. More...
 
List< LayerDebugInformation< T > > LayerInfoList [get]
 Returns an array of LayerDebugInformation corresponding to each Layer added. More...
 

Detailed Description

The DebugInformation contains information used to help debug the Layers of a Net while it is training.

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

Definition at line 15 of file DebugInformation.cs.

Constructor & Destructor Documentation

◆ DebugInformation()

MyCaffe.common.DebugInformation< T >.DebugInformation ( string  strName,
Blob< T >  work,
bool  bDetectNans 
)

The DebugInformation constructor.

Parameters
strNameSpecifies a name for the DebugInformation.
workSpecifies a workspace Blob.
bDetectNansSpecifies whether or not to detect Nan's in the data.

Definition at line 29 of file DebugInformation.cs.

Member Function Documentation

◆ Add()

void MyCaffe.common.DebugInformation< T >.Add ( Layer< T >  layer,
BlobCollection< T >  colBottomBlobs,
BlobCollection< T >  colTopBlobs 
)

Adds a Layer and its Bottom and Top blob collections.

Parameters
layerSpecifies the Layer.
colBottomBlobsSpecifies the Bottom Blobs flowing into the Layer.
colTopBlobsSpecifies the Top Blobs flowing out of the Layer.

Definition at line 70 of file DebugInformation.cs.

◆ Compare()

bool MyCaffe.common.DebugInformation< T >.Compare ( DebugInformation< T >  dbg)

Compares this DebugInformation to another.

Parameters
dbgSpecifies the other DebugInformation to compare to.
Returns
If the two DebugInformations are the same, true is returned, otherwise false is returned.

Definition at line 105 of file DebugInformation.cs.

◆ DetectFirstNaN()

string MyCaffe.common.DebugInformation< T >.DetectFirstNaN ( out string  strType)

Searches for the first NaN within any of the Layers.

Parameters
strTypeReturns the Layer type for which a NaN was detected (if any).
Returns
If found, the name of the Blob in which a NaN was detected is returned, otherwise null is returned.

Definition at line 127 of file DebugInformation.cs.

◆ DetectLastNaN()

string MyCaffe.common.DebugInformation< T >.DetectLastNaN ( out string  strType)

Searches for the last NaN within any of the Layers.

Parameters
strTypeReturns the Layer type for which a NaN was detected (if any).
Returns
If found, the name of the Blob in which a NaN was detected is returned, otherwise null is returned.

Definition at line 147 of file DebugInformation.cs.

◆ Dispose()

void MyCaffe.common.DebugInformation< T >.Dispose ( )

Releases the memory (GPU and Host) used by the DebugInformation including the Workspace.

Definition at line 39 of file DebugInformation.cs.

◆ FindLayer()

LayerDebugInformation< T > MyCaffe.common.DebugInformation< T >.FindLayer ( string  strLayer)

Searches for the named layer.

Parameters
strLayerSpecifies the name of the layer to look for.
Returns
If found, the layer debug information is returned, otherwise null is returned.

Definition at line 53 of file DebugInformation.cs.

◆ ToString()

override string MyCaffe.common.DebugInformation< T >.ToString ( )

Returns a string representation of the DebugInformation.

Returns
The string representation is returned.

Definition at line 166 of file DebugInformation.cs.

Property Documentation

◆ ExtraInfo

double MyCaffe.common.DebugInformation< T >.ExtraInfo
getset

Get/set extra information about the DebugInformation.

Definition at line 86 of file DebugInformation.cs.

◆ LayerInfoList

List<LayerDebugInformation<T> > MyCaffe.common.DebugInformation< T >.LayerInfoList
get

Returns an array of LayerDebugInformation corresponding to each Layer added.

Definition at line 95 of file DebugInformation.cs.

◆ Name

string MyCaffe.common.DebugInformation< T >.Name
get

Returns the name of the DebugInformation.

Definition at line 78 of file DebugInformation.cs.


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