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

Specifies the NetState which includes the phase, level and stage for which a given Net is to run under. More...

Inheritance diagram for MyCaffe.param.NetState:
MyCaffe.basecode.BaseParameter

Public Member Functions

 NetState ()
 The NetState constructor. More...
 
void Save (BinaryWriter bw)
 Saves the NetState to a binary writer. More...
 
void MergeFrom (NetState ns)
 Merges another NetState with this instance. More...
 
NetState Clone ()
 Creates a new copy of this NetState instance. More...
 
int CompareTo (object obj)
 Compares this NetState to another one. More...
 
override RawProto ToProto (string strName)
 Converts this NetState to a RawProto. 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 NetState Load (BinaryReader br)
 Loads a new NetState instance from a binary reader. More...
 
static NetState FromProto (RawProto rp)
 Parses a RawProto representing a NetState into a NetState instance. 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

Phase phase [getset]
 Specifies the Phase of the NetState. More...
 
int level [getset]
 Specifies the level of the NetState. More...
 
List< string > stage [getset]
 Specifies the stages of the NetState. More...
 

Detailed Description

Specifies the NetState which includes the phase, level and stage for which a given Net is to run under.

Definition at line 18 of file NetState.cs.

Constructor & Destructor Documentation

◆ NetState()

MyCaffe.param.NetState.NetState ( )

The NetState constructor.

Definition at line 27 of file NetState.cs.

Member Function Documentation

◆ Clone()

NetState MyCaffe.param.NetState.Clone ( )

Creates a new copy of this NetState instance.

Returns
The new NetState instance is returned.

Definition at line 119 of file NetState.cs.

◆ CompareTo()

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

Compares this NetState to another one.

Parameters
objSpecifies the other NetState to compare with this one.
Returns
If the NetStates are the same 0 is returned, otherwise 1 is returned.

Definition at line 144 of file NetState.cs.

◆ FromProto()

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

Parses a RawProto representing a NetState into a NetState instance.

Parameters
rpSpecifies the RawProto representing the NetState.
Returns
The new instance of the NetState is returned.

Definition at line 178 of file NetState.cs.

◆ Load()

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

Loads a new NetState instance from a binary reader.

Parameters
brSpecifies the binary reader to use.
Returns
The new NetState instance is returned.

Definition at line 47 of file NetState.cs.

◆ MergeFrom()

void MyCaffe.param.NetState.MergeFrom ( NetState  ns)

Merges another NetState with this instance.

Parameters
ns

Definition at line 98 of file NetState.cs.

◆ Save()

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

Saves the NetState to a binary writer.

Parameters
bwSpecifies the binary writer to use.

Definition at line 35 of file NetState.cs.

◆ ToProto()

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

Converts this NetState to a RawProto.

Parameters
strNameSpecifies a name given to the RawProto.
Returns
The new RawProto representing the NetState is returned.

Implements MyCaffe.basecode.BaseParameter.

Definition at line 162 of file NetState.cs.

Property Documentation

◆ level

int MyCaffe.param.NetState.level
getset

Specifies the level of the NetState.

Definition at line 72 of file NetState.cs.

◆ phase

Phase MyCaffe.param.NetState.phase
getset

Specifies the Phase of the NetState.

Definition at line 62 of file NetState.cs.

◆ stage

List<string> MyCaffe.param.NetState.stage
getset

Specifies the stages of the NetState.

Definition at line 82 of file NetState.cs.


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