|
CorTeX Core ABI 7
ToolTech Software · C++ library reference
|
#include <ctxGraph.h>
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 ¶meter, gzFloat &value) |
| gzBool | setParameter (const ctxParameterRef ¶meter, 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 |
Definition at line 1758 of file ctxGraph.h.
| ctxModel::ctxModel | ( | ) |
References CTX_EXPORT.
|
virtual |
References CTX_EXPORT.
| ctxBuildResult ctxModel::build | ( | const ctxBuildRequest & | request | ) |
References CTX_EXPORT.
| gzBool ctxModel::build | ( | const ctxGraph & | graph, |
| ctxInput * | input, | ||
| ctxOutput * | output, | ||
| ctxNeuronType | outputType = CTX_NEURON_TYPE_DEFAULT ) |
References CTX_EXPORT, and CTX_NEURON_TYPE_DEFAULT.
| 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.
| gzBool ctxModel::compile | ( | const ctxCompileOptions & | options | ) |
References CTX_EXPORT.
| ctxCompileResult ctxModel::compile | ( | const ctxCompileRequest & | request | ) |
References CTX_EXPORT.
| gzBool ctxModel::compile | ( | ctxOptimizeFlags | optimize = CTX_OPTIMIZE_NONE | ) |
References CTX_EXPORT, and CTX_OPTIMIZE_NONE.
|
overridevirtual |
Implements ctxModelDebugNode.
References CTX_EXPORT.
|
overridevirtual |
Implements ctxModelDebugNode.
References CTX_EXPORT.
| gzBool ctxModel::evaluate | ( | const ctxExecutionProgram & | program, |
| gzUInt32 | sample = 0, | ||
| gzUInt32 | pages = 1 ) |
References CTX_EXPORT.
| gzBool ctxModel::evaluate | ( | gzUInt32 | sample = 0, |
| gzUInt32 | pages = 1 ) |
References CTX_EXPORT.
| ctxArtifactIdentity ctxModel::getArtifactIdentity | ( | ) | const |
References CTX_EXPORT.
| ctxBuildRealization ctxModel::getBuildRealization | ( | ) | const |
Returns an independent graph snapshot, or an invalid value before graph build.
References CTX_EXPORT.
| gzString ctxModel::getCanonicalSignature | ( | ) | const |
References CTX_EXPORT.
|
static |
References CTX_EXPORT.
| gzUInt64 ctxModel::getCompactRealizationBytes | ( | ) | const |
Allocated numeric lookup payload; excludes the retained graph and execution banks.
References CTX_EXPORT.
| ctxContext * ctxModel::getContext | ( | ) | const |
Returns the live context, retaining its identity through compactRealization().
References CTX_EXPORT.
| ctxCortex * ctxModel::getCortex | ( | ) | const |
Materializes generic objects before compaction; returns NULL after it until rebuild.
References CTX_EXPORT.
|
overridevirtual |
Implements ctxModelDebugNode.
References CTX_EXPORT.
|
overridevirtual |
Implements ctxModelDebugNode.
References CTX_EXPORT.
| gzString ctxModel::getError | ( | ) | const |
References CTX_EXPORT.
| ctxExecutionDiagnostics ctxModel::getExecutionDiagnostics | ( | ) | const |
References CTX_EXPORT.
| ctxExecutionMode ctxModel::getExecutionMode | ( | ) | const |
References CTX_EXPORT.
| gzBool ctxModel::getExecutionTrace | ( | gzDynamicArray< ctxExecutionTraceEntry > & | trace | ) | const |
References CTX_EXPORT.
| ctxInstrumentationFlags ctxModel::getInstrumentation | ( | ) | const |
References CTX_EXPORT.
| gzBool ctxModel::getParameter | ( | const ctxParameterRef & | parameter, |
| gzFloat & | value ) |
References CTX_EXPORT.
| ctxProgramProfile ctxModel::getProgramProfile | ( | ) | const |
References CTX_EXPORT.
| gzBool ctxModel::getSemanticOrigins | ( | gzDynamicArray< ctxSemanticOrigin > & | origins | ) | const |
Materializes sorted captured Evaluate origins, then current derivative origins.
References CTX_EXPORT.
| ctxTrainer * ctxModel::getTrainer | ( | ) | const |
References CTX_EXPORT.
|
virtual |
| gzBool ctxModel::getValue | ( | const ctxValueRef & | value, |
| gzFloat & | result, | ||
| gzUInt32 | page = 0 ) |
References CTX_EXPORT.
| gzBool ctxModel::hasOptimizationIdentityMap | ( | ) | const |
References CTX_EXPORT.
| gzBool ctxModel::installTrainer | ( | ctxTrainer * | trainer | ) |
References CTX_EXPORT.
| gzBool ctxModel::isCompactRealized | ( | ) | const |
References CTX_EXPORT.
| gzBool ctxModel::isGenericRealized | ( | ) | const |
References CTX_EXPORT.
| gzBool ctxModel::isMonitored | ( | const ctxValueRef & | value | ) | const |
References CTX_EXPORT.
| gzBool ctxModel::isProgramRequested | ( | ctxProgramType | type | ) | const |
References CTX_EXPORT.
| gzBool ctxModel::loadParameters | ( | const gzString & | url | ) |
References CTX_EXPORT.
| gzBool ctxModel::mapOptimizedValueIndex | ( | gzUInt32 | sourceIndex, |
| gzUInt32 & | optimizedIndex ) const |
References CTX_EXPORT.
| gzBool ctxModel::monitor | ( | const ctxValueRef & | value | ) |
References CTX_EXPORT.
| ctxPropagateResult ctxModel::propagate | ( | const ctxPropagateRequest & | request | ) |
References CTX_EXPORT.
| gzBool ctxModel::saveParameters | ( | const gzString & | url | ) |
References CTX_EXPORT.
| gzBool ctxModel::setParameter | ( | const ctxParameterRef & | parameter, |
| gzFloat | value ) |
References CTX_EXPORT.
| 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.
| gzBool ctxModel::train | ( | ) |
References CTX_EXPORT.
| gzBool ctxModel::train | ( | const ctxBackpropTrainingOptions & | options | ) |
References CTX_EXPORT.
| gzBool ctxModel::train | ( | const ctxGeneticTrainingOptions & | options | ) |
References CTX_EXPORT.
|
friend |
Definition at line 1835 of file ctxGraph.h.
References ctxGraphDocument.
Referenced by ctxGraphDocument.