![]() |
MyCaffe
1.12.2.41
Deep learning software for Windows C# programmers.
|
Specifies the shape of a Blob. More...
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... | |
Specifies the shape of a Blob.
Definition at line 14 of file BlobShape.cs.
| MyCaffe.param.BlobShape.BlobShape | ( | ) |
The BlobShape constructor.
Definition at line 21 of file BlobShape.cs.
| MyCaffe.param.BlobShape.BlobShape | ( | int | nNum, |
| int | nC, | ||
| int | nH, | ||
| int | nW | ||
| ) |
The BlobShape constructor.
| nNum | Specifies the number of data items. |
| nC | Specifies the data channels. |
| nH | Specifies the data height. |
| nW | Specifies the data width. |
Definition at line 32 of file BlobShape.cs.
| MyCaffe.param.BlobShape.BlobShape | ( | List< int > | rgShape | ) |
The BlobShape constructor.
| rgShape | Specifies the shape of a blob. |
Definition at line 41 of file BlobShape.cs.
| BlobShape MyCaffe.param.BlobShape.Clone | ( | ) |
Creates a copy of the BlobShape.
Definition at line 102 of file BlobShape.cs.
| bool MyCaffe.param.BlobShape.Compare | ( | BlobShape | bs | ) |
Compares this BlobShape to another.
| bs | Specifies the other BlobShape to compare this one to. |
Definition at line 125 of file BlobShape.cs.
| int MyCaffe.param.BlobShape.CompareTo | ( | object | obj | ) |
Compares this BlobShape to another.
| obj | Specifies the other BlobShape to compare this one to. |
Definition at line 135 of file BlobShape.cs.
Parse a new BlobShape from a RawProto.
| rp | Specifies the RawProto containing a representation of the BlobShape. |
Definition at line 167 of file BlobShape.cs.
|
static |
Load the BlobShape from a binary reader.
| br | The binary reader to use. |
Definition at line 83 of file BlobShape.cs.
| object MyCaffe.param.BlobShape.Load | ( | BinaryReader | br, |
| bool | bNewInstance | ||
| ) |
Load the BlobShape from a binary reader.
| br | The binary reader to use. |
| bNewInstance | When true, a the BlobShape is read into a new instance, otherwise it is read into the current instance. |
Implements MyCaffe.basecode.IBinaryPersist.
Definition at line 66 of file BlobShape.cs.
| void MyCaffe.param.BlobShape.Save | ( | BinaryWriter | bw | ) |
Save the BlobShape to a binary writer.
| bw | The binary writer to use. |
Implements MyCaffe.basecode.IBinaryPersist.
Definition at line 55 of file BlobShape.cs.
|
virtual |
Converts the BlobShape to a RawProto.
| strName | Specifies a name for the RawProto. |
Implements MyCaffe.basecode.BaseParameter.
Definition at line 153 of file BlobShape.cs.
| override string MyCaffe.param.BlobShape.ToString | ( | ) |
Return the string representation of the shape.
Definition at line 176 of file BlobShape.cs.
|
getset |
The blob shape dimensions.
Definition at line 92 of file BlobShape.cs.