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

The WeightInfo class describes the weights of a given weight set including the blob names and sizes of the weights. More...

Public Member Functions

 WeightInfo ()
 The constructor. More...
 
void AddBlob (string strName, List< int > rgShape, BLOB_TYPE type)
 Add a blob name and shape to the WeightInfo. More...
 
void AddBlob (Blob< T > b)
 Add a blob name and shape to the WeightInfo. More...
 

Properties

Dictionary< string, Tuple< List< int >, BLOB_TYPE > > Blobs [get]
 Returns the list of blob information describing the weights. Each entry within the Dictionary returned contains the Blob's name and the Blob's dimensions (e.g. {num, channels, height, width}) as a List of integers. More...
 

Detailed Description

The WeightInfo class describes the weights of a given weight set including the blob names and sizes of the weights.

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

Definition at line 14 of file WeightInfo.cs.

Constructor & Destructor Documentation

◆ WeightInfo()

The constructor.

Definition at line 22 of file WeightInfo.cs.

Member Function Documentation

◆ AddBlob() [1/2]

void MyCaffe.common.WeightInfo< T >.AddBlob ( Blob< T >  b)

Add a blob name and shape to the WeightInfo.

Parameters
bSpecifies the Blob who's name and shape are to be added.

Definition at line 42 of file WeightInfo.cs.

◆ AddBlob() [2/2]

void MyCaffe.common.WeightInfo< T >.AddBlob ( string  strName,
List< int >  rgShape,
BLOB_TYPE  type 
)

Add a blob name and shape to the WeightInfo.

Parameters
strNameSpecifies the Blob name.
rgShapeSpecifies the Blob shape.
typeSpecifies the Blob type.

Definition at line 32 of file WeightInfo.cs.

Property Documentation

◆ Blobs

Dictionary<string, Tuple<List<int>, BLOB_TYPE> > MyCaffe.common.WeightInfo< T >.Blobs
get

Returns the list of blob information describing the weights. Each entry within the Dictionary returned contains the Blob's name and the Blob's dimensions (e.g. {num, channels, height, width}) as a List of integers.

Definition at line 52 of file WeightInfo.cs.


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