CorTeX Core ABI 7
ToolTech Software · C++ library reference
Loading...
Searching...
No Matches
ctxModel Class Reference

#include <ctxGraph.h>

Inheritance diagram for ctxModel:
ctxModelDebugNode

Public Member Functions

virtual gzType * getType () const
 ctxModel ()
virtual ~ctxModel ()
ctxBuildResult build (const ctxBuildRequest &request)
gzBool build (const ctxGraph &graph, ctxInput *input, ctxOutput *output, ctxNeuronType outputType=CTX_NEURON_TYPE_DEFAULT)
gzBool setWeightedDropConnection (gzBool enabled, gzUInt64 &markedConnections)
 Sets DropConnect on connected weighted synapses in the realized graph before compilation.
ctxCompileResult compile (const ctxCompileRequest &request)
gzBool compile (ctxOptimizeFlags optimize=CTX_OPTIMIZE_NONE)
gzBool compile (const ctxCompileOptions &options)
ctxPropagateResult propagate (const ctxPropagateRequest &request)
gzBool evaluate (const ctxExecutionProgram &program, gzUInt32 sample=0, gzUInt32 pages=1)
gzBool evaluate (gzUInt32 sample=0, gzUInt32 pages=1)
gzBool installTrainer (ctxTrainer *trainer)
ctxTrainer * getTrainer () const
gzBool train ()
gzBool train (const ctxBackpropTrainingOptions &options)
gzBool train (const ctxGeneticTrainingOptions &options)
gzBool getParameter (const ctxParameterRef &parameter, gzFloat &value)
gzBool setParameter (const ctxParameterRef &parameter, gzFloat value)
gzBool getValue (const ctxValueRef &value, gzFloat &result, gzUInt32 page=0)
gzBool monitor (const ctxValueRef &value)
gzBool isMonitored (const ctxValueRef &value) const
gzBool saveParameters (const gzString &url)
gzBool loadParameters (const gzString &url)
ctxCortex * getCortex () const
 Materializes generic objects before compaction; returns NULL after it until rebuild.
ctxContext * getContext () const
 Returns the live context, retaining its identity through compactRealization().
ctxBuildRealization getBuildRealization () const
 Returns an independent graph snapshot, or an invalid value before graph build.
gzBool isGenericRealized () const
gzBool compactRealization ()
 Retains semantic access and prepared CAL while releasing scalar construction objects.
gzBool isCompactRealized () const
gzUInt64 getCompactRealizationBytes () const
 Allocated numeric lookup payload; excludes the retained graph and execution banks.
ctxProgramProfile getProgramProfile () const
ctxExecutionMode getExecutionMode () const
ctxInstrumentationFlags getInstrumentation () const
ctxExecutionDiagnostics getExecutionDiagnostics () const
gzBool getExecutionTrace (gzDynamicArray< ctxExecutionTraceEntry > &trace) const
gzBool getSemanticOrigins (gzDynamicArray< ctxSemanticOrigin > &origins) const
 Materializes sorted captured Evaluate origins, then current derivative origins.
gzBool hasOptimizationIdentityMap () const
gzBool mapOptimizedValueIndex (gzUInt32 sourceIndex, gzUInt32 &optimizedIndex) const
gzBool isProgramRequested (ctxProgramType type) const
ctxArtifactIdentity getArtifactIdentity () const
gzString getCanonicalSignature () const
gzString getError () const
virtual gzString getDebugNodeType () const override
virtual gzString getDebugNodeName () const override
virtual gzVoid debugProperties (const gzString &prefix, ctxModelDebugFlags flags) const override
virtual gzVoid debugChildren (const gzString &prefix, ctxModelDebugFlags flags) const override
Public Member Functions inherited from ctxModelDebugNode
virtual ~ctxModelDebugNode ()
gzVoid debug (ctxModelDebugFlags flags=CTX_MODEL_DEBUG_ALL) const
gzVoid debugRender (const gzString &prefix, gzBool last, ctxModelDebugFlags flags) const

Static Public Member Functions

static gzType * getClassType ()

Friends

class ctxGraphDocument

Additional Inherited Members

Protected Member Functions inherited from ctxModelDebugNode
gzVoid debugProperty (const gzString &prefix, const gzString &name, const gzString &value) const

Detailed Description

Definition at line 1758 of file ctxGraph.h.

Constructor & Destructor Documentation

◆ ctxModel()

ctxModel::ctxModel ( )

References CTX_EXPORT.

◆ ~ctxModel()

virtual ctxModel::~ctxModel ( )
virtual

References CTX_EXPORT.

Member Function Documentation

◆ build() [1/2]

ctxBuildResult ctxModel::build ( const ctxBuildRequest & request)

References CTX_EXPORT.

◆ build() [2/2]

gzBool ctxModel::build ( const ctxGraph & graph,
ctxInput * input,
ctxOutput * output,
ctxNeuronType outputType = CTX_NEURON_TYPE_DEFAULT )

◆ compactRealization()

gzBool ctxModel::compactRealization ( )

Retains semantic access and prepared CAL while releasing scalar construction objects.

Call at an idle execution boundary after compile and, for Backprop, trainer prepare. I/O bindings, context and an installed trainer retain their identities. Rebuild the retained graph before another compilation or explicit legacy-object access.

References CTX_EXPORT.

◆ compile() [1/3]

gzBool ctxModel::compile ( const ctxCompileOptions & options)

References CTX_EXPORT.

◆ compile() [2/3]

ctxCompileResult ctxModel::compile ( const ctxCompileRequest & request)

References CTX_EXPORT.

◆ compile() [3/3]

gzBool ctxModel::compile ( ctxOptimizeFlags optimize = CTX_OPTIMIZE_NONE)

References CTX_EXPORT, and CTX_OPTIMIZE_NONE.

◆ debugChildren()

virtual gzVoid ctxModel::debugChildren ( const gzString & prefix,
ctxModelDebugFlags flags ) const
overridevirtual

Implements ctxModelDebugNode.

References CTX_EXPORT.

◆ debugProperties()

virtual gzVoid ctxModel::debugProperties ( const gzString & prefix,
ctxModelDebugFlags flags ) const
overridevirtual

Implements ctxModelDebugNode.

References CTX_EXPORT.

◆ evaluate() [1/2]

gzBool ctxModel::evaluate ( const ctxExecutionProgram & program,
gzUInt32 sample = 0,
gzUInt32 pages = 1 )

References CTX_EXPORT.

◆ evaluate() [2/2]

gzBool ctxModel::evaluate ( gzUInt32 sample = 0,
gzUInt32 pages = 1 )

References CTX_EXPORT.

◆ getArtifactIdentity()

ctxArtifactIdentity ctxModel::getArtifactIdentity ( ) const

References CTX_EXPORT.

◆ getBuildRealization()

ctxBuildRealization ctxModel::getBuildRealization ( ) const

Returns an independent graph snapshot, or an invalid value before graph build.

References CTX_EXPORT.

◆ getCanonicalSignature()

gzString ctxModel::getCanonicalSignature ( ) const

References CTX_EXPORT.

◆ getClassType()

gzType * ctxModel::getClassType ( )
static

References CTX_EXPORT.

◆ getCompactRealizationBytes()

gzUInt64 ctxModel::getCompactRealizationBytes ( ) const

Allocated numeric lookup payload; excludes the retained graph and execution banks.

References CTX_EXPORT.

◆ getContext()

ctxContext * ctxModel::getContext ( ) const

Returns the live context, retaining its identity through compactRealization().

References CTX_EXPORT.

◆ getCortex()

ctxCortex * ctxModel::getCortex ( ) const

Materializes generic objects before compaction; returns NULL after it until rebuild.

References CTX_EXPORT.

◆ getDebugNodeName()

virtual gzString ctxModel::getDebugNodeName ( ) const
overridevirtual

Implements ctxModelDebugNode.

References CTX_EXPORT.

◆ getDebugNodeType()

virtual gzString ctxModel::getDebugNodeType ( ) const
overridevirtual

Implements ctxModelDebugNode.

References CTX_EXPORT.

◆ getError()

gzString ctxModel::getError ( ) const

References CTX_EXPORT.

◆ getExecutionDiagnostics()

ctxExecutionDiagnostics ctxModel::getExecutionDiagnostics ( ) const

References CTX_EXPORT.

◆ getExecutionMode()

ctxExecutionMode ctxModel::getExecutionMode ( ) const

References CTX_EXPORT.

◆ getExecutionTrace()

gzBool ctxModel::getExecutionTrace ( gzDynamicArray< ctxExecutionTraceEntry > & trace) const

References CTX_EXPORT.

◆ getInstrumentation()

ctxInstrumentationFlags ctxModel::getInstrumentation ( ) const

References CTX_EXPORT.

◆ getParameter()

gzBool ctxModel::getParameter ( const ctxParameterRef & parameter,
gzFloat & value )

References CTX_EXPORT.

◆ getProgramProfile()

ctxProgramProfile ctxModel::getProgramProfile ( ) const

References CTX_EXPORT.

◆ getSemanticOrigins()

gzBool ctxModel::getSemanticOrigins ( gzDynamicArray< ctxSemanticOrigin > & origins) const

Materializes sorted captured Evaluate origins, then current derivative origins.

References CTX_EXPORT.

◆ getTrainer()

ctxTrainer * ctxModel::getTrainer ( ) const

References CTX_EXPORT.

◆ getType()

virtual gzType * ctxModel::getType ( ) const
virtual

◆ getValue()

gzBool ctxModel::getValue ( const ctxValueRef & value,
gzFloat & result,
gzUInt32 page = 0 )

References CTX_EXPORT.

◆ hasOptimizationIdentityMap()

gzBool ctxModel::hasOptimizationIdentityMap ( ) const

References CTX_EXPORT.

◆ installTrainer()

gzBool ctxModel::installTrainer ( ctxTrainer * trainer)

References CTX_EXPORT.

◆ isCompactRealized()

gzBool ctxModel::isCompactRealized ( ) const

References CTX_EXPORT.

◆ isGenericRealized()

gzBool ctxModel::isGenericRealized ( ) const

References CTX_EXPORT.

◆ isMonitored()

gzBool ctxModel::isMonitored ( const ctxValueRef & value) const

References CTX_EXPORT.

◆ isProgramRequested()

gzBool ctxModel::isProgramRequested ( ctxProgramType type) const

References CTX_EXPORT.

◆ loadParameters()

gzBool ctxModel::loadParameters ( const gzString & url)

References CTX_EXPORT.

◆ mapOptimizedValueIndex()

gzBool ctxModel::mapOptimizedValueIndex ( gzUInt32 sourceIndex,
gzUInt32 & optimizedIndex ) const

References CTX_EXPORT.

◆ monitor()

gzBool ctxModel::monitor ( const ctxValueRef & value)

References CTX_EXPORT.

◆ propagate()

ctxPropagateResult ctxModel::propagate ( const ctxPropagateRequest & request)

References CTX_EXPORT.

◆ saveParameters()

gzBool ctxModel::saveParameters ( const gzString & url)

References CTX_EXPORT.

◆ setParameter()

gzBool ctxModel::setParameter ( const ctxParameterRef & parameter,
gzFloat value )

References CTX_EXPORT.

◆ setWeightedDropConnection()

gzBool ctxModel::setWeightedDropConnection ( gzBool enabled,
gzUInt64 & markedConnections )

Sets DropConnect on connected weighted synapses in the realized graph before compilation.

Covers internal and output layers. Counts their incoming weighted connection entries when enabled, including separate uses of shared weights, or returns zero when disabled. Unweighted connections and biases are untouched. Set the training probability separately. Requires an already materialized graph model. On failure, the graph and count are unchanged.

References CTX_EXPORT.

◆ train() [1/3]

gzBool ctxModel::train ( )

References CTX_EXPORT.

◆ train() [2/3]

gzBool ctxModel::train ( const ctxBackpropTrainingOptions & options)

References CTX_EXPORT.

◆ train() [3/3]

gzBool ctxModel::train ( const ctxGeneticTrainingOptions & options)

References CTX_EXPORT.

◆ ctxGraphDocument

friend class ctxGraphDocument
friend

Definition at line 1835 of file ctxGraph.h.

References ctxGraphDocument.

Referenced by ctxGraphDocument.


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