2using System.Collections.Generic;
5using System.Threading.Tasks;
16 Dictionary<string, Tuple<List<int>,
BLOB_TYPE>> m_rgBlobInfo =
new Dictionary<string, Tuple<List<int>,
BLOB_TYPE>>();
34 strName = m_names.GetName(strName);
35 m_rgBlobInfo.Add(strName,
new Tuple<List<int>,
BLOB_TYPE>(rgShape, type));
44 string strName = m_names.GetName(b.
Name);
54 get {
return m_rgBlobInfo; }
63 Dictionary<string, int> m_rgNames =
new Dictionary<string, int>();
79 if (
string.IsNullOrEmpty(strName))
82 if (!m_rgNames.ContainsKey(strName))
84 m_rgNames.Add(strName, 1);
89 strName = strName + m_rgNames[strName].ToString();
The Blob is the main holder of data that moves through the Layers of the Net.
BLOB_TYPE type
Returns the BLOB_TYPE of the Blob.
List< int > shape()
Returns an array where each element contains the shape of an axis of the Blob.
string Name
Get/set the name of the Blob.
The BlobName class is used to build unique blob names.
string GetName(string strName)
Returns a unique blob name.
BlobName()
The constructor.
The WeightInfo class describes the weights of a given weight set including the blob names and sizes o...
void AddBlob(string strName, List< int > rgShape, BLOB_TYPE type)
Add a blob name and shape to the WeightInfo.
WeightInfo()
The constructor.
Dictionary< string, Tuple< List< int >, BLOB_TYPE > > Blobs
Returns the list of blob information describing the weights. Each entry within the Dictionary returne...
void AddBlob(Blob< T > b)
Add a blob name and shape to the WeightInfo.
The MyCaffe.common namespace contains common MyCaffe classes.
BLOB_TYPE
Defines the tpe of data held by a given Blob.