MyCaffe  1.12.2.41
Deep learning software for Windows C# programmers.
MyCaffe.param.BlobProto Class Reference

The BlobProto contains the descripion of a blob. More...

Inheritance diagram for MyCaffe.param.BlobProto:
MyCaffe.basecode.BaseParameter MyCaffe.basecode.IBinaryPersist

Public Member Functions

 BlobProto ()
 Constructor for the BlobProto. More...
 
 BlobProto (List< int > rgShape)
 Constructor for the BlobProto More...
 
void Save (BinaryWriter bw)
 Saves the BlobProto to a binary writer. More...
 
object Load (BinaryReader br, bool bNewInstance)
 Loads a BlobProto from a binary reader. More...
 
object Clone ()
 Copies the BlobProto and returns a new instance. More...
 
override RawProto ToProto (string strName)
 Converts the BlobProto to a RawProto. More...
 
int CompareTo (object obj)
 Compares the BlobProto to another BlobProto. More...
 
- Public Member Functions inherited from MyCaffe.basecode.BaseParameter
 BaseParameter ()
 Constructor for the parameter. More...
 
virtual bool Compare (BaseParameter p)
 Compare this parameter to another parameter. More...
 

Static Public Member Functions

static BlobProto FromProto (RawProto rp)
 Parses a new BlobProto from a RawProto. More...
 
static BlobProto Load (BinaryReader br)
 Load a new BlobProto from a binary reader. More...
 
- Static Public Member Functions inherited from MyCaffe.basecode.BaseParameter
static double ParseDouble (string strVal)
 Parse double values using the US culture if the decimal separator = '.', then using the native culture, and if then lastly trying the US culture to handle prototypes containing '.' as the separator, yet parsed in a culture that does not use '.' as a decimal. More...
 
static bool TryParse (string strVal, out double df)
 Parse double values using the US culture if the decimal separator = '.', then using the native culture, and if then lastly trying the US culture to handle prototypes containing '.' as the separator, yet parsed in a culture that does not use '.' as a decimal. More...
 
static float ParseFloat (string strVal)
 Parse float values using the US culture if the decimal separator = '.', then using the native culture, and if then lastly trying the US culture to handle prototypes containing '.' as the separator, yet parsed in a culture that does not use '.' as a decimal. More...
 
static bool TryParse (string strVal, out float f)
 Parse doufloatble values using the US culture if the decimal separator = '.', then using the native culture, and if then lastly trying the US culture to handle prototypes containing '.' as the separator, yet parsed in a culture that does not use '.' as a decimal. More...
 

Properties

BlobShape shape [getset]
 Specifies the shape of the Blob. More...
 
int? num [getset]
 Specifies the number of inputs (such as images) in the Blob. More...
 
int? channels [getset]
 Specifies the number of images per input. More...
 
int? height [getset]
 Specifies the height of each input. More...
 
int? width [getset]
 Specifies the width of each input. More...
 
List< double > double_data [getset]
 Get/set the data as a List of double. More...
 
List< double > double_diff [getset]
 Get/set the diff as a List of double. More...
 
List< float > data [getset]
 Get/set the data as a List of float. More...
 
List< float > diff [getset]
 Get/set the diff as a List of float. More...
 

Detailed Description

The BlobProto contains the descripion of a blob.

Definition at line 14 of file BlobProto.cs.

Constructor & Destructor Documentation

◆ BlobProto() [1/2]

MyCaffe.param.BlobProto.BlobProto ( )

Constructor for the BlobProto.

Definition at line 31 of file BlobProto.cs.

◆ BlobProto() [2/2]

MyCaffe.param.BlobProto.BlobProto ( List< int >  rgShape)

Constructor for the BlobProto

Parameters
rgShapeSpecifies the shape of the blob.

Definition at line 39 of file BlobProto.cs.

Member Function Documentation

◆ Clone()

object MyCaffe.param.BlobProto.Clone ( )

Copies the BlobProto and returns a new instance.

Returns
The new instance is returned.

Definition at line 198 of file BlobProto.cs.

◆ CompareTo()

int MyCaffe.param.BlobProto.CompareTo ( object  obj)

Compares the BlobProto to another BlobProto.

Parameters
objSpecifies the other BlobProto to compare to.
Returns
If the two BlobProto's are the same true is returned, otherwise false.

Definition at line 268 of file BlobProto.cs.

◆ FromProto()

static BlobProto MyCaffe.param.BlobProto.FromProto ( RawProto  rp)
static

Parses a new BlobProto from a RawProto.

Parameters
rpSpecifies the RawProto to parse.
Returns
A new instance of the BlobProto is returned.

Definition at line 243 of file BlobProto.cs.

◆ Load() [1/2]

static BlobProto MyCaffe.param.BlobProto.Load ( BinaryReader  br)
static

Load a new BlobProto from a binary reader.

Parameters
brSpecifies the binary reader.
Returns
A new instance of the BlobProto is returned.

Definition at line 286 of file BlobProto.cs.

◆ Load() [2/2]

object MyCaffe.param.BlobProto.Load ( BinaryReader  br,
bool  bNewInstance 
)

Loads a BlobProto from a binary reader.

Parameters
brSpecifies the binary reader.
bNewInstanceWhen true a new instance is created, otherwise the data is read into the existing BlobProto.
Returns
The instance of the BlobProto is returned.

Implements MyCaffe.basecode.IBinaryPersist.

Definition at line 84 of file BlobProto.cs.

◆ Save()

void MyCaffe.param.BlobProto.Save ( BinaryWriter  bw)

Saves the BlobProto to a binary writer.

Parameters
bwSpecifies the binary writer.

Implements MyCaffe.basecode.IBinaryPersist.

Definition at line 48 of file BlobProto.cs.

◆ ToProto()

override RawProto MyCaffe.param.BlobProto.ToProto ( string  strName)
virtual

Converts the BlobProto to a RawProto.

Parameters
strNameSpecifies a name for the RawProto.
Returns
The RawProto representing the BlobProto is returned.

Implements MyCaffe.basecode.BaseParameter.

Definition at line 219 of file BlobProto.cs.

Property Documentation

◆ channels

int? MyCaffe.param.BlobProto.channels
getset

Specifies the number of images per input.

Definition at line 134 of file BlobProto.cs.

◆ data

List<float> MyCaffe.param.BlobProto.data
getset

Get/set the data as a List of float.

Definition at line 179 of file BlobProto.cs.

◆ diff

List<float> MyCaffe.param.BlobProto.diff
getset

Get/set the diff as a List of float.

Definition at line 188 of file BlobProto.cs.

◆ double_data

List<double> MyCaffe.param.BlobProto.double_data
getset

Get/set the data as a List of double.

Definition at line 161 of file BlobProto.cs.

◆ double_diff

List<double> MyCaffe.param.BlobProto.double_diff
getset

Get/set the diff as a List of double.

Definition at line 170 of file BlobProto.cs.

◆ height

int? MyCaffe.param.BlobProto.height
getset

Specifies the height of each input.

Definition at line 143 of file BlobProto.cs.

◆ num

int? MyCaffe.param.BlobProto.num
getset

Specifies the number of inputs (such as images) in the Blob.

Definition at line 125 of file BlobProto.cs.

◆ shape

BlobShape MyCaffe.param.BlobProto.shape
getset

Specifies the shape of the Blob.

Definition at line 116 of file BlobProto.cs.

◆ width

int? MyCaffe.param.BlobProto.width
getset

Specifies the width of each input.

Definition at line 152 of file BlobProto.cs.


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