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

Specifies the shape of a Blob. More...

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

Public Member Functions

 BlobShape ()
 The BlobShape constructor. More...
 
 BlobShape (int nNum, int nC, int nH, int nW)
 The BlobShape constructor. More...
 
 BlobShape (List< int > rgShape)
 The BlobShape constructor. More...
 
void Save (BinaryWriter bw)
 Save the BlobShape to a binary writer. More...
 
object Load (BinaryReader br, bool bNewInstance)
 Load the BlobShape from a binary reader. More...
 
BlobShape Clone ()
 Creates a copy of the BlobShape. More...
 
bool Compare (BlobShape bs)
 Compares this BlobShape to another. More...
 
int CompareTo (object obj)
 Compares this BlobShape to another. More...
 
override RawProto ToProto (string strName)
 Converts the BlobShape to a RawProto. More...
 
override string ToString ()
 Return the string representation of the shape. 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 BlobShape Load (BinaryReader br)
 Load the BlobShape from a binary reader. More...
 
static BlobShape FromProto (RawProto rp)
 Parse a new BlobShape from a RawProto. 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

List< int > dim [getset]
 The blob shape dimensions. More...
 

Detailed Description

Specifies the shape of a Blob.

Definition at line 14 of file BlobShape.cs.

Constructor & Destructor Documentation

◆ BlobShape() [1/3]

MyCaffe.param.BlobShape.BlobShape ( )

The BlobShape constructor.

Definition at line 21 of file BlobShape.cs.

◆ BlobShape() [2/3]

MyCaffe.param.BlobShape.BlobShape ( int  nNum,
int  nC,
int  nH,
int  nW 
)

The BlobShape constructor.

Parameters
nNumSpecifies the number of data items.
nCSpecifies the data channels.
nHSpecifies the data height.
nWSpecifies the data width.

Definition at line 32 of file BlobShape.cs.

◆ BlobShape() [3/3]

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

The BlobShape constructor.

Parameters
rgShapeSpecifies the shape of a blob.

Definition at line 41 of file BlobShape.cs.

Member Function Documentation

◆ Clone()

BlobShape MyCaffe.param.BlobShape.Clone ( )

Creates a copy of the BlobShape.

Returns
A new instance of the BlobShape is returned.

Definition at line 102 of file BlobShape.cs.

◆ Compare()

bool MyCaffe.param.BlobShape.Compare ( BlobShape  bs)

Compares this BlobShape to another.

Parameters
bsSpecifies the other BlobShape to compare this one to.
Returns
If the two BlobShape's are the same true is returned, otherwise false is returned.

Definition at line 125 of file BlobShape.cs.

◆ CompareTo()

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

Compares this BlobShape to another.

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

Definition at line 135 of file BlobShape.cs.

◆ FromProto()

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

Parse a new BlobShape from a RawProto.

Parameters
rpSpecifies the RawProto containing a representation of the BlobShape.
Returns
A new instance of the BlobShape is returned.

Definition at line 167 of file BlobShape.cs.

◆ Load() [1/2]

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

Load the BlobShape from a binary reader.

Parameters
brThe binary reader to use.
Returns
A new BlobShape instance is returned.

Definition at line 83 of file BlobShape.cs.

◆ Load() [2/2]

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

Load the BlobShape from a binary reader.

Parameters
brThe binary reader to use.
bNewInstanceWhen true, a the BlobShape is read into a new instance, otherwise it is read into the current instance.
Returns
The BlobShape instance is returned.

Implements MyCaffe.basecode.IBinaryPersist.

Definition at line 66 of file BlobShape.cs.

◆ Save()

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

Save the BlobShape to a binary writer.

Parameters
bwThe binary writer to use.

Implements MyCaffe.basecode.IBinaryPersist.

Definition at line 55 of file BlobShape.cs.

◆ ToProto()

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

Converts the BlobShape to a RawProto.

Parameters
strNameSpecifies a name for the RawProto.
Returns
A new RawProto representing the BlobShape is returned.

Implements MyCaffe.basecode.BaseParameter.

Definition at line 153 of file BlobShape.cs.

◆ ToString()

override string MyCaffe.param.BlobShape.ToString ( )

Return the string representation of the shape.

Returns
The string representation is returned.

Definition at line 176 of file BlobShape.cs.

Property Documentation

◆ dim

List<int> MyCaffe.param.BlobShape.dim
getset

The blob shape dimensions.

Definition at line 92 of file BlobShape.cs.


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