|
CorTeX Core ABI 7
ToolTech Software · C++ library reference
|
#include <ctxContext.h>
Public Member Functions | |
| ctxContext () | |
| virtual | ~ctxContext () |
| gzBool | useDeepCopy () |
| gzVoid | reset () |
| gzVoid | clearPrograms () |
| gzVoid | clearRegistryIndices () |
| gzVoid | clearTempIndices () |
| gzVoid | clearParameters () |
| gzVoid | setParameters (ctxCortexParameters *parameters) |
| ctxCortexParameters * | getParameters () |
| gzBool | isCompatibleParameters (ctxCortexParameters *right) |
| gzBool | updateInput (gzUInt32 sample, gzUInt32 page=0) |
| gzBool | execute (ctxProgramType type=CTX_PROGRAM_EVALUATE, gzUInt32 pages=1, gzBool checkPages=TRUE, gzBool parallel=TRUE, gzUInt32 startPage=0) |
| gzBool | executeVm (ctxProgramType type=CTX_PROGRAM_EVALUATE, gzUInt32 pages=1, gzBool checkPages=TRUE, gzUInt32 startPage=0) |
| gzBool | executeInitializedProgram (ctxProgramType type, gzBool parallel) |
| gzBool | executeInitializedProgram (ctxProgramType type, ctxProgramExecution execution) |
| gzBool | executeWithFlags (ctxProgramType type, gzUInt32 pages, gzBool checkPages, ctxProgramExecution execution, gzUInt32 startPage) |
| gzBool | isCompiled (ctxProgramType type=CTX_PROGRAM_EVALUATE) |
| gzBool | hasInitializedProgram (ctxProgramType type=CTX_PROGRAM_EVALUATE, gzUInt32 pages=1, gzBool checkPages=TRUE, gzUInt32 startPage=0) |
| gzBool | initializeProgram (ctxProgramType type=CTX_PROGRAM_EVALUATE, gzUInt32 pages=1, gzBool checkPages=TRUE, gzUInt32 startPage=0, gzBool allocateMemory=TRUE) |
| gzBool | initializeProgramAllocations (ctxProgramType type=CTX_PROGRAM_EVALUATE, gzUInt32 pages=1, gzUInt32 startPage=0) |
| gzVoid | updateProgramParameters () |
| gzBool | isOptimized (ctxProgramType type=CTX_PROGRAM_EVALUATE) |
| gzFloat | getResult (gzUInt32 index=0, gzUInt32 page=0) |
| gzUInt32 | getResultSize () |
| gzBool | mapOptimizedRegisterIndex (ctxRegistrySourceIndex bank, gzUInt32 sourceIndex, gzUInt32 &mappedIndex) const |
| Resolve an index from the current compilation's pre-optimization CAL. | |
| gzBool | readOptimizedValue (gzUInt32 sourceIndex, gzFloat &value, gzUInt32 page=0) |
| Read a retained VALUE by its original index and page after execution. | |
| gzBool | copyExpectedValues (gzUInt32 firstSample, gzUInt32 pages, gzArray< gzFloat > &values) const |
| Copy host-prepared EXPECTED values for consecutive logical input samples. | |
| gzBool | readResults (gzUInt32 firstPage, gzUInt32 pages, gzArray< gzFloat > &results) |
| Read the Evaluate results of pages [firstPage, firstPage + pages). | |
| gzVoid | pinParameterRegister () |
| gzVoid | pinValueRegister () |
| gzVoid | pinDeltaRegisters () |
| gzVoid | pinDeltaSumRegisters () |
| gzVoid | pinWeightAndBiasVelocityRegister () |
| gzVoid | waitParameterRegister () |
| gzUInt32 | getNextValueIndex () |
| gzUInt32 | getNextParameterIndex () |
| gzUInt32 | getNextSignalSourceIndex () |
| gzUInt32 | getNextInputIndex () |
| gzUInt32 | getNextDeltaIndex () |
| gzUInt32 | getNextFeatureIndex () |
| gzUInt32 | getNextGeneralIndex () |
| gzUInt32 | getNextTempIndex () |
| gzFloat | getParameter (gzUInt32 index) |
| gzBool | setCostErrorMethod (ctxCostErrorMethod costErrorMethod) |
| gzVoid | randomParameters (gzFloat stddev, gzFloat mean=0) |
| gzVoid | randomAddParameters (gzFloat stddev, gzFloat mean=0) |
| gzVoid | mutateParameters (gzFloat stddev, gzFloat mean=0) |
| gzVoid | mutateAddParameters (gzFloat stddev, gzFloat mean=0) |
| gzVoid | mutateBreeding () |
| gzVoid | randomCrossover (ctxCortexParameters *mate) |
| gzVoid | sequenceCrossover (ctxCortexParameters *mate) |
| gzVoid | sequenceBreedingCrossover (ctxCortexParameters *mate) |
| gzVoid | setParameters (gzUInt32 startIndex, gzUInt32 count, gzFloat value) |
| gzVoid | setParameter (gzUInt32 index, gzFloat value) |
| Public Member Functions inherited from ctxDebugInstanceManager | |
| ctxDebugInstanceManager () | |
| gzVoid | setDebugFlags (ctxDebugInterface *instance, const ctxDebugFlags &flags) |
| ctxDebugFlags | getDebugFlags (ctxDebugInterface *instance) |
| gzVoid | setLayerID (ctxDebugInterface *instance, const gzUInt32 &layerID) |
| gzUInt32 | getLayerID (ctxDebugInterface *instance) |
| gzVoid | setFeature (ctxDebugInterface *instance, const gzUInt32 &featureIndex, const gzUInt32XYZ &featurePosition) |
| gzUInt32 | getFeatureIndex (ctxDebugInterface *instance) |
| gzUInt32XYZ | getFeaturePosition (ctxDebugInterface *instance) |
| gzVoid | debug () |
| gzBool | hasDebugInstances () const |
| Returns TRUE when any instance has registered debug flags, layer or feature state. | |
| gzBool | hasActiveDebugFlags () const |
| gzVoid | clearDebugInstances () |
| Releases object-address metadata at an explicit realization boundary. | |
| gzVoid | debug (gzType *type, ctxDebugInterface *instance, ctxDebugInstanceInfo *info) |
| gzVoid | getOptimizeRegisterKeepLists (gzDynamicArray< gzUInt32 > &valueKeepList, gzDynamicArray< gzUInt32 > &deltaKeepList) |
| gzVoid | registerDebugger (gzType *type, ctxDebuggerInterface *debugger) |
| gzVoid | unregisterDebugger (gzType *type, ctxDebuggerInterface *debugger) |
Static Public Member Functions | |
| static gzUInt8 | getNextUpdateID () |
Friends | |
| class | ctxSignalSource |
| class | ctxBackwardCompilationScope |
| class | ctxManagedUpdateCompilationScope |
Definition at line 90 of file ctxContext.h.
| ctxContext::ctxContext | ( | ) |
References CTX_EXPORT.
Referenced by ctxManagedUpdateCompilationScope.
|
virtual |
References CTX_EXPORT.
| gzVoid ctxContext::clearParameters | ( | ) |
References CTX_EXPORT.
| gzVoid ctxContext::clearPrograms | ( | ) |
References CTX_EXPORT.
| gzVoid ctxContext::clearRegistryIndices | ( | ) |
References CTX_EXPORT.
| gzVoid ctxContext::clearTempIndices | ( | ) |
References CTX_EXPORT.
| gzBool ctxContext::copyExpectedValues | ( | gzUInt32 | firstSample, |
| gzUInt32 | pages, | ||
| gzArray< gzFloat > & | values ) const |
Copy host-prepared EXPECTED values for consecutive logical input samples.
Call only after successful input/expected preparation, with no concurrent context mutation. This checks sample identities, stride, bounds and finite values; it does not establish that evaluation or target preparation ran. Zero Evaluate stride is valid only when CAL uses no EXPECTED registers; the output manager still prepares result-sized host pages in that case. The destination is page-major, with getResultSize() values per page, and is cleared on failure. No dataset read, backend wait or state update occurs.
References CTX_EXPORT.
| gzBool ctxContext::execute | ( | ctxProgramType | type = CTX_PROGRAM_EVALUATE, |
| gzUInt32 | pages = 1, | ||
| gzBool | checkPages = TRUE, | ||
| gzBool | parallel = TRUE, | ||
| gzUInt32 | startPage = 0 ) |
References CTX_EXPORT, and CTX_PROGRAM_EVALUATE.
| gzBool ctxContext::executeInitializedProgram | ( | ctxProgramType | type, |
| ctxProgramExecution | execution ) |
| gzBool ctxContext::executeInitializedProgram | ( | ctxProgramType | type, |
| gzBool | parallel ) |
| gzBool ctxContext::executeVm | ( | ctxProgramType | type = CTX_PROGRAM_EVALUATE, |
| gzUInt32 | pages = 1, | ||
| gzBool | checkPages = TRUE, | ||
| gzUInt32 | startPage = 0 ) |
References CTX_EXPORT, and CTX_PROGRAM_EVALUATE.
| gzBool ctxContext::executeWithFlags | ( | ctxProgramType | type, |
| gzUInt32 | pages, | ||
| gzBool | checkPages, | ||
| ctxProgramExecution | execution, | ||
| gzUInt32 | startPage ) |
| gzUInt32 ctxContext::getNextDeltaIndex | ( | ) |
| gzUInt32 ctxContext::getNextFeatureIndex | ( | ) |
| gzUInt32 ctxContext::getNextGeneralIndex | ( | ) |
| gzUInt32 ctxContext::getNextInputIndex | ( | ) |
| gzUInt32 ctxContext::getNextParameterIndex | ( | ) |
| gzUInt32 ctxContext::getNextSignalSourceIndex | ( | ) |
| gzUInt32 ctxContext::getNextTempIndex | ( | ) |
|
static |
References CTX_EXPORT.
| gzUInt32 ctxContext::getNextValueIndex | ( | ) |
| gzFloat ctxContext::getParameter | ( | gzUInt32 | index | ) |
| ctxCortexParameters * ctxContext::getParameters | ( | ) |
References CTX_EXPORT.
| gzFloat ctxContext::getResult | ( | gzUInt32 | index = 0, |
| gzUInt32 | page = 0 ) |
References CTX_EXPORT.
| gzUInt32 ctxContext::getResultSize | ( | ) |
References CTX_EXPORT.
| gzBool ctxContext::hasInitializedProgram | ( | ctxProgramType | type = CTX_PROGRAM_EVALUATE, |
| gzUInt32 | pages = 1, | ||
| gzBool | checkPages = TRUE, | ||
| gzUInt32 | startPage = 0 ) |
References CTX_EXPORT, and CTX_PROGRAM_EVALUATE.
| gzBool ctxContext::initializeProgram | ( | ctxProgramType | type = CTX_PROGRAM_EVALUATE, |
| gzUInt32 | pages = 1, | ||
| gzBool | checkPages = TRUE, | ||
| gzUInt32 | startPage = 0, | ||
| gzBool | allocateMemory = TRUE ) |
References CTX_EXPORT, and CTX_PROGRAM_EVALUATE.
| gzBool ctxContext::initializeProgramAllocations | ( | ctxProgramType | type = CTX_PROGRAM_EVALUATE, |
| gzUInt32 | pages = 1, | ||
| gzUInt32 | startPage = 0 ) |
References CTX_EXPORT, and CTX_PROGRAM_EVALUATE.
| gzBool ctxContext::isCompatibleParameters | ( | ctxCortexParameters * | right | ) |
References CTX_EXPORT.
| gzBool ctxContext::isCompiled | ( | ctxProgramType | type = CTX_PROGRAM_EVALUATE | ) |
References CTX_EXPORT, and CTX_PROGRAM_EVALUATE.
| gzBool ctxContext::isOptimized | ( | ctxProgramType | type = CTX_PROGRAM_EVALUATE | ) |
References CTX_EXPORT, and CTX_PROGRAM_EVALUATE.
| gzBool ctxContext::mapOptimizedRegisterIndex | ( | ctxRegistrySourceIndex | bank, |
| gzUInt32 | sourceIndex, | ||
| gzUInt32 & | mappedIndex ) const |
Resolve an index from the current compilation's pre-optimization CAL.
FALSE leaves mappedIndex unchanged. Recompilation invalidates old indices; already translated graph-object indices must not be translated twice. Prepared DELTA_SUM and WB use the one retained DELTA-domain table.
References CTX_EXPORT.
| gzVoid ctxContext::mutateAddParameters | ( | gzFloat | stddev, |
| gzFloat | mean = 0 ) |
References CTX_EXPORT.
| gzVoid ctxContext::mutateBreeding | ( | ) |
References CTX_EXPORT.
| gzVoid ctxContext::mutateParameters | ( | gzFloat | stddev, |
| gzFloat | mean = 0 ) |
References CTX_EXPORT.
| gzVoid ctxContext::pinDeltaRegisters | ( | ) |
References CTX_EXPORT.
| gzVoid ctxContext::pinDeltaSumRegisters | ( | ) |
References CTX_EXPORT.
| gzVoid ctxContext::pinParameterRegister | ( | ) |
References CTX_EXPORT.
| gzVoid ctxContext::pinValueRegister | ( | ) |
References CTX_EXPORT.
| gzVoid ctxContext::pinWeightAndBiasVelocityRegister | ( | ) |
References CTX_EXPORT.
| gzVoid ctxContext::randomAddParameters | ( | gzFloat | stddev, |
| gzFloat | mean = 0 ) |
References CTX_EXPORT.
| gzVoid ctxContext::randomCrossover | ( | ctxCortexParameters * | mate | ) |
References CTX_EXPORT.
| gzVoid ctxContext::randomParameters | ( | gzFloat | stddev, |
| gzFloat | mean = 0 ) |
References CTX_EXPORT.
| gzBool ctxContext::readOptimizedValue | ( | gzUInt32 | sourceIndex, |
| gzFloat & | value, | ||
| gzUInt32 | page = 0 ) |
Read a retained VALUE by its original index and page after execution.
Synchronizes only the requested value where the backend supports ranged readback. Removed indices and invalid pages return FALSE without changing value. This does not execute, retain or reconstruct an eliminated value. Call with no concurrent execution or context mutation.
References CTX_EXPORT.
| gzBool ctxContext::readResults | ( | gzUInt32 | firstPage, |
| gzUInt32 | pages, | ||
| gzArray< gzFloat > & | results ) |
Read the Evaluate results of pages [firstPage, firstPage + pages).
The destination is page-major, with getResultSize() values per page, and is cleared on failure. With a GPU backend only the span of result registers of each page is transferred, not the whole value bank as with getResult(); other host VALUE registers stay stale. Call after execution with no concurrent context mutation.
References CTX_EXPORT.
| gzVoid ctxContext::reset | ( | ) |
References CTX_EXPORT.
| gzVoid ctxContext::sequenceBreedingCrossover | ( | ctxCortexParameters * | mate | ) |
References CTX_EXPORT.
| gzVoid ctxContext::sequenceCrossover | ( | ctxCortexParameters * | mate | ) |
References CTX_EXPORT.
| gzBool ctxContext::setCostErrorMethod | ( | ctxCostErrorMethod | costErrorMethod | ) |
References costErrorMethod, and CTX_EXPORT.
| gzVoid ctxContext::setParameter | ( | gzUInt32 | index, |
| gzFloat | value ) |
References CTX_EXPORT.
| gzVoid ctxContext::setParameters | ( | ctxCortexParameters * | parameters | ) |
References CTX_EXPORT.
| gzVoid ctxContext::setParameters | ( | gzUInt32 | startIndex, |
| gzUInt32 | count, | ||
| gzFloat | value ) |
References CTX_EXPORT.
| gzBool ctxContext::updateInput | ( | gzUInt32 | sample, |
| gzUInt32 | page = 0 ) |
References CTX_EXPORT.
| gzVoid ctxContext::updateProgramParameters | ( | ) |
References CTX_EXPORT.
|
inline |
Definition at line 99 of file ctxContext.h.
References CTX_EXPORT.
| gzVoid ctxContext::waitParameterRegister | ( | ) |
References CTX_EXPORT.
|
friend |
Definition at line 313 of file ctxContext.h.
References ctxBackwardCompilationScope.
Referenced by ctxBackwardCompilationScope, and ctxManagedUpdateCompilationScope.
|
friend |
Definition at line 314 of file ctxContext.h.
References CTX_EXPORT, ctxBackwardCompilationScope, ctxContext(), ctxManagedUpdateCompilationScope, and ctxSignalSource.
Referenced by ctxManagedUpdateCompilationScope.
|
friend |
Definition at line 312 of file ctxContext.h.
References ctxSignalSource.
Referenced by ctxManagedUpdateCompilationScope, and ctxSignalSource.
| gzDynamicArray<gzList<gzVoid> > ctxContext::accumIndex |
Definition at line 208 of file ctxContext.h.
| gzDynamicArray<ctxAssembler> ctxContext::assemblers |
Definition at line 190 of file ctxContext.h.
| gzDynamicArray<gzDynamicArray<gzUInt32> > ctxContext::commandSequence |
Definition at line 188 of file ctxContext.h.
| ctxOptimizeFlags ctxContext::compileOptimizeFlags |
Definition at line 185 of file ctxContext.h.
| ctxCostErrorMethod ctxContext::costErrorMethod |
Definition at line 266 of file ctxContext.h.
Referenced by setCostErrorMethod().
| ctxBackpropInfo ctxContext::currentBackpropInfo |
Definition at line 268 of file ctxContext.h.
| gzUInt32 ctxContext::currentDeltaIndex |
Definition at line 252 of file ctxContext.h.
| gzUInt32 ctxContext::currentExpectedStride |
Definition at line 259 of file ctxContext.h.
| gzUInt32 ctxContext::currentFeatureIndex |
Definition at line 257 of file ctxContext.h.
| gzUInt32 ctxContext::currentGeneralIndex |
Definition at line 253 of file ctxContext.h.
| gzUInt32 ctxContext::currentInputIndex |
Definition at line 251 of file ctxContext.h.
| gzUInt32 ctxContext::currentMaxDenomReg |
Definition at line 261 of file ctxContext.h.
| gzUInt32 ctxContext::currentParameterIndex |
Definition at line 249 of file ctxContext.h.
| gzUInt32 ctxContext::currentSignalSourceIndex |
Definition at line 250 of file ctxContext.h.
| gzUInt32 ctxContext::currentTempIndex |
Definition at line 255 of file ctxContext.h.
| gzUInt32 ctxContext::currentValueIndex |
Definition at line 248 of file ctxContext.h.
| gzUInt32 ctxContext::deltaValue_updateID |
Definition at line 227 of file ctxContext.h.
| gzDynamicArray<gzFloat> ctxContext::deltaValueMean |
Definition at line 218 of file ctxContext.h.
| gzUInt32 ctxContext::deltaValueMean_updateID |
Definition at line 230 of file ctxContext.h.
| gzDynamicArray<gzFloat> ctxContext::deltaValueRMS |
Definition at line 217 of file ctxContext.h.
| gzUInt32 ctxContext::deltaValueRMS_updateID |
Definition at line 229 of file ctxContext.h.
| gzDynamicArray<gzFloat> ctxContext::deltaValues |
Definition at line 215 of file ctxContext.h.
| gzDynamicArray<gzFloat> ctxContext::deltaValueSum |
Definition at line 216 of file ctxContext.h.
| gzUInt32 ctxContext::deltaValueSum_updateID |
Definition at line 228 of file ctxContext.h.
| gzUInt32 ctxContext::drop_connection_updateID |
Definition at line 232 of file ctxContext.h.
| gzDynamicArray<gzBool> ctxContext::droppedValues |
Definition at line 201 of file ctxContext.h.
| gzUInt32 ctxContext::expected_updateID |
Definition at line 234 of file ctxContext.h.
| gzDynamicArray<gzFloat> ctxContext::expectedData |
Definition at line 198 of file ctxContext.h.
| gzUInt32 ctxContext::general_updateID |
Definition at line 233 of file ctxContext.h.
| gzDynamicArray<gzFloat> ctxContext::generalData |
Definition at line 197 of file ctxContext.h.
| gzBool ctxContext::hasOptimizationIdentity |
Definition at line 242 of file ctxContext.h.
| gzUInt32 ctxContext::input_updateID |
Definition at line 225 of file ctxContext.h.
| gzDynamicArray<gzFloat> ctxContext::inputData |
Definition at line 195 of file ctxContext.h.
| gzDynamicArray<gzUInt32> ctxContext::inputSampleIndex |
Definition at line 196 of file ctxContext.h.
| gzRefPointer<gzReference> ctxContext::nativeProgram |
Definition at line 274 of file ctxContext.h.
| ctxNetworkType ctxContext::networkType |
Definition at line 238 of file ctxContext.h.
| ctxRegisterTranslation ctxContext::optimizationIdentity |
Definition at line 241 of file ctxContext.h.
| gzUInt32 ctxContext::parameter_updateID |
Definition at line 224 of file ctxContext.h.
| gzDynamicArray<gzFloat> ctxContext::parameterData |
Definition at line 204 of file ctxContext.h.
| gzDynamicArray<ctxCompileStatus> ctxContext::programCompileStatus |
Definition at line 189 of file ctxContext.h.
| gzDynamicArray<ctxVirtualMachineProgramPtr> ctxContext::programs |
Definition at line 244 of file ctxContext.h.
| ctxDetailedRegisterUse ctxContext::register_use |
Definition at line 240 of file ctxContext.h.
| gzDynamicArray<gzUInt32> ctxContext::resultValueIndex |
Definition at line 194 of file ctxContext.h.
| gzBool ctxContext::showFeatures |
Definition at line 270 of file ctxContext.h.
| gzDynamicArray<ctxSignalSourcePtr> ctxContext::signalSources |
Definition at line 212 of file ctxContext.h.
| gzDynamicArray<ctxSourceInput> ctxContext::sourceInput |
Definition at line 213 of file ctxContext.h.
| gzUInt32 ctxContext::temp_updateID |
Definition at line 235 of file ctxContext.h.
| gzDynamicArray<gzFloat> ctxContext::tempRegisters |
Definition at line 220 of file ctxContext.h.
| gzUInt8 ctxContext::updateID |
Definition at line 184 of file ctxContext.h.
| gzUInt32 ctxContext::value_updateID |
Definition at line 226 of file ctxContext.h.
| gzDynamicArray<gzFloat> ctxContext::valueData |
Definition at line 193 of file ctxContext.h.
| gzUInt32 ctxContext::weightAndBias_updateID |
Definition at line 231 of file ctxContext.h.
| gzDynamicArray<gzFloat> ctxContext::weightAndBiasVelocity |
Definition at line 206 of file ctxContext.h.