|
CorTeX Core ABI 7
ToolTech Software · C++ library reference
|
Go to the source code of this file.
Classes | |
| class | ctxGraphIdentity |
| Identifies one immutable revision in a graph lineage. More... | |
| class | ctxActivation |
| class | ctxOperationData |
| Owned immutable attributes for one operation occurrence. More... | |
| class | ctxLayer |
| class | ctxGraphOperation |
| class | ctxGraphOperationLowerer |
| class | ctxGraphConnectionLowerer |
| class | ctxShape |
| class | ctxAxisOrder |
| Maps each output dimension to one input dimension: features=0, width=1, height=2, depth=3. More... | |
| class | ctxOperationSchema |
| Immutable operation contract and retained realization callbacks. More... | |
| class | ctxDeferredOperationSchema |
| Opt-in custom contract whose callbacks may run at first materialization. More... | |
| class | ctxParameterRole |
| One immutable named FLOAT parameter role; shapes are rank one or rank four. More... | |
| class | ctxParameterOperationSchema |
| Deferred rank-one unary FLOAT operation with a captured named parameter inventory. More... | |
| class | ctxParameterLayer |
| Realization-local owner bindings for a named-parameter operation's flat native layer. More... | |
| class | ctxGraphConnection |
| class | ctxGraphParameterBinding |
| class | ctxGraphConvolutionMapping |
| class | ctxGraphState |
| class | ctxLayerRef |
| class | ctxConvolutionMapping |
| class | ctxConvolutionMappingRef |
| class | ctxConvolutionMappingRefList |
| class | ctxLayerRefList |
| class | ctxNodeRef |
| class | ctxNodeRefList |
| class | ctxNodeRangeRef |
| class | ctxPortRef |
| class | ctxValueRef |
| class | ctxValue |
| Retained whole rank-one or rank-four gzFloat result of one graph revision. More... | |
| class | ctxModule |
| Immutable reusable graph with one explicit rank-one FLOAT Input and a whole final result, without a terminal Output. More... | |
| class | ctxConnectionRef |
| class | ctxConnectionRefList |
| class | ctxParameterRef |
| class | ctxParameterSlice |
| class | ctxGraph |
| class | ctxGraphLoweringContext |
| struct | ctxCompileOptions |
| class | ctxLifecycleDiagnostic |
| Structured diagnostic returned by Generation 2 lifecycle operations. More... | |
| class | ctxArtifactIdentity |
| Exact association of a lifecycle artifact with one model and graph revision. More... | |
| class | ctxOperationRegistryRevision |
| Dependency-scoped registry revision: one captured immutable definition per graph occurrence, in graph order. More... | |
| class | ctxBuildIdentity |
| Exact build ownership, captured operation contracts and layout policy. More... | |
| class | ctxBuildRealization |
| Owned read-only semantic snapshot of a successful graph build, without CAL. More... | |
| class | ctxBuildRequest |
| Immutable request to realize a graph revision or adapt a direct ctxCortex. More... | |
| class | ctxBuildResult |
| class | ctxExecutionProgram |
| Inspectable execution-program identity. More... | |
| class | ctxCompileRequest |
| Immutable compile request tied to one successful build result. More... | |
| class | ctxCompileResult |
| class | ctxPropagateRequest |
| Immutable Backprop CAL-generation request tied to one compiled artifact. More... | |
| class | ctxPropagateResult |
| struct | ctxExecutionDiagnostics |
| struct | ctxExecutionTraceEntry |
| struct | ctxSemanticOrigin |
| class | ctxModelDebugNode |
| class | ctxModel |
Macros | |
| #define | CTX_GRAPH_INVERSE_RMS_EPSILON 1.0e-6f |
| Fixed epsilon of ReduceInverseRms: r = (sum(x*x)/N + epsilon)^-1/2. | |
Typedefs | |
| typedef ctxGraph | ctxGraf |
Functions | |
| ctxActivation | Linear () |
| ctxActivation | Tanh () |
| ctxActivation | Relu () |
| ctxActivation | LeakyRelu () |
| ctxLayer | Dense (gzUInt32 neurons, ctxNeuronType type=CTX_NEURON_TYPE_DEFAULT) |
| ctxLayer | DenseFrom (gzUInt32 neurons, ctxNeuronType type=CTX_NEURON_TYPE_DEFAULT) |
| Full Dense projection from one explicitly selected whole rank-one FLOAT value. | |
| ctxLayer | Activation (gzUInt32 values, const ctxActivation &activation) |
| ctxLayer | Add (gzUInt32 values) |
| Parameter-free element-wise sum of two equal whole rank-one float values. | |
| ctxLayer | Multiply (gzUInt32 values) |
| Parameter-free element-wise product of two equal whole rank-one float values. | |
| ctxLayer | Reshape (const ctxShape &shape) |
| Parameter-free rank-one/rank-four shape view preserving every flat value index. | |
| ctxLayer | Transpose (const ctxAxisOrder &axes) |
| Parameter-free rank-four permutation; axes use features/width/height/depth order. | |
| ctxLayer | ReduceSum () |
| Parameter-free whole-value sum to one rank-one FLOAT result. | |
| ctxLayer | ReduceMean () |
| Parameter-free whole-value arithmetic mean to one rank-one FLOAT result. | |
| ctxLayer | ReduceMaximum () |
| Whole-value maximum; Backprop divides the derivative equally among ties. | |
| ctxLayer | ReduceProduct () |
| Whole-value product; derivatives remain defined when operands are zero. | |
| ctxLayer | ReduceSum (gzUInt32 axis) |
| Reduce one explicit rank-four axis (0..3), retaining that dimension at length one. | |
| ctxLayer | ReduceMean (gzUInt32 axis) |
| ctxLayer | ReduceMaximum (gzUInt32 axis) |
| ctxLayer | ReduceProduct (gzUInt32 axis) |
| ctxLayer | ReduceInverseRms () |
| Parameter-free whole-value inverse root mean square to one rank-one FLOAT result: r = (sum(x*x)/N + CTX_GRAPH_INVERSE_RMS_EPSILON)^-1/2, lowered as EXP(-0.5*LN(.)). | |
| ctxLayer | ReduceInverseRms (gzUInt32 axis) |
| Inverse root mean square over one explicit rank-four axis (0..3), retaining that dimension at length one. | |
| ctxLayer | MultiplyBroadcast (gzUInt32 axis) |
| Parameter-free product of a rank-four left value and a right value of the same shape except length one along the explicit axis (0..3). | |
| ctxValue | RmsNorm (const ctxValue &input, gzUInt32 axis, const gzString &name) |
| Per-page RMS normalization of a rank-four value along one explicit axis: authors "name/rstd" = ReduceInverseRms(axis) and "name" = MultiplyBroadcast(axis) as one atomic edit. | |
| ctxLayer | Input (gzUInt32 values) |
| ctxLayer | Convolution2D (ctxIndexControl source, ctxIndexControl filter, ctxNeuronType type=CTX_NEURON_TYPE_DEFAULT) |
| ctxLayer | Output (gzUInt32 values, ctxNeuronType type=CTX_NEURON_TYPE_DEFAULT) |
| ctxLayer | RegisteredOperation (const gzString &key, gzUInt32 version, gzUInt32 values) |
| Creates an occurrence with its captured unary or explicit full-projection role. | |
| ctxLayer | RegisteredOperation (const gzString &key, gzUInt32 version, ctxIndexControl source, ctxIndexControl filter) |
| Creates a captured registered Convolution occurrence with checked source/filter controls. | |
| ctxValue | operator+ (const ctxValue &left, const ctxValue &right) |
| Calls Add over equal whole FLOAT values of one already-common revision. | |
| ctxValue | operator* (const ctxValue &left, const ctxValue &right) |
| Calls Multiply over equal whole FLOAT values of one already-common revision. | |
| ctxValue & | operator+= (ctxValue &left, const ctxValue &right) |
| Assigns left + right and returns left; failure assigns the diagnostic invalid result. | |
| ctxValue & | operator*= (ctxValue &left, const ctxValue &right) |
| Assigns left * right with the same retained-alias and invalid-result contract. | |
| ctxGraph | operator+ (const ctxLayer &left, const ctxLayer &right) |
| ctxGraph | operator+ (const ctxGraph &graph, const ctxLayer &layer) |
| GZ_USE_BIT_LOGIC (ctxInstrumentationFlags) | |
| GZ_USE_BIT_LOGIC (ctxModelDebugFlags) | |
| #define CTX_GRAPH_INVERSE_RMS_EPSILON 1.0e-6f |
Fixed epsilon of ReduceInverseRms: r = (sum(x*x)/N + epsilon)^-1/2.
Definition at line 74 of file ctxGraph.h.
Definition at line 1286 of file ctxGraph.h.
| enum ctxBuildLayoutPolicy |
Versioned logical scalar layout; cache readiness is not a layout change.
| Enumerator | |
|---|---|
| CTX_BUILD_LAYOUT_INVALID | |
| CTX_BUILD_LAYOUT_GENERIC_SCALAR_V1 | |
Definition at line 1442 of file ctxGraph.h.
| enum ctxExecutionMode |
| Enumerator | |
|---|---|
| CTX_EXECUTION_MODE_DEBUG | |
| CTX_EXECUTION_MODE_PLAIN | |
| CTX_EXECUTION_MODE_OPTIMIZED | |
Definition at line 1297 of file ctxGraph.h.
Definition at line 54 of file ctxGraph.h.
Semantic projection kind; raw ctxGraphConnection::getSize remains ZIP-only.
Definition at line 77 of file ctxGraph.h.
| enum ctxHandleStatus |
Describes why a graph-bound handle cannot be used with a graph revision.
Definition at line 116 of file ctxGraph.h.
Definition at line 1304 of file ctxGraph.h.
| enum ctxLifecycleError |
Definition at line 1346 of file ctxGraph.h.
| enum ctxLifecycleSource |
Identifies whether a lifecycle request originates from a graph revision or an already realized direct ctxCortex.
| Enumerator | |
|---|---|
| CTX_LIFECYCLE_SOURCE_NONE | |
| CTX_LIFECYCLE_SOURCE_GRAPH | |
| CTX_LIFECYCLE_SOURCE_DIRECT_CORTEX | |
Definition at line 1331 of file ctxGraph.h.
| enum ctxLifecycleStage |
| Enumerator | |
|---|---|
| CTX_LIFECYCLE_STAGE_NONE | |
| CTX_LIFECYCLE_STAGE_BUILD | |
| CTX_LIFECYCLE_STAGE_COMPILE | |
| CTX_LIFECYCLE_STAGE_PROPAGATE | |
Definition at line 1338 of file ctxGraph.h.
| enum ctxModelDebugFlags |
Definition at line 1719 of file ctxGraph.h.
| enum ctxParameterKind |
| Enumerator | |
|---|---|
| CTX_PARAMETER_INVALID | |
| CTX_PARAMETER_WEIGHT | |
| CTX_PARAMETER_BIAS | |
| CTX_PARAMETER_CONVOLUTION_WEIGHT | |
| CTX_PARAMETER_NAMED | |
Definition at line 342 of file ctxGraph.h.
| enum ctxPortKind |
| Enumerator | |
|---|---|
| CTX_PORT_INVALID | |
| CTX_PORT_INPUT | |
| CTX_PORT_OUTPUT | |
Definition at line 351 of file ctxGraph.h.
| enum ctxProgramProfile |
| Enumerator | |
|---|---|
| CTX_PROGRAM_PROFILE_EVALUATE_GENETIC | |
| CTX_PROGRAM_PROFILE_BACKPROP | |
Definition at line 1291 of file ctxGraph.h.
| enum ctxValueType |
Element types of the supported retained graph-result contracts.
| Enumerator | |
|---|---|
| CTX_VALUE_TYPE_INVALID | |
| CTX_VALUE_TYPE_FLOAT | |
Definition at line 359 of file ctxGraph.h.
| ctxLayer Activation | ( | gzUInt32 | values, |
| const ctxActivation & | activation ) |
References Activation(), and CTX_EXPORT.
Referenced by Activation().
| ctxLayer Add | ( | gzUInt32 | values | ) |
Parameter-free element-wise sum of two equal whole rank-one float values.
References Add(), and CTX_EXPORT.
Referenced by Add().
| ctxLayer Convolution2D | ( | ctxIndexControl | source, |
| ctxIndexControl | filter, | ||
| ctxNeuronType | type = CTX_NEURON_TYPE_DEFAULT ) |
References Convolution2D(), CTX_EXPORT, and CTX_NEURON_TYPE_DEFAULT.
Referenced by Convolution2D().
| ctxLayer Dense | ( | gzUInt32 | neurons, |
| ctxNeuronType | type = CTX_NEURON_TYPE_DEFAULT ) |
References CTX_EXPORT, CTX_NEURON_TYPE_DEFAULT, and Dense().
Referenced by Dense().
| ctxLayer DenseFrom | ( | gzUInt32 | neurons, |
| ctxNeuronType | type = CTX_NEURON_TYPE_DEFAULT ) |
Full Dense projection from one explicitly selected whole rank-one FLOAT value.
References CTX_EXPORT, CTX_NEURON_TYPE_DEFAULT, and DenseFrom().
Referenced by DenseFrom().
| GZ_USE_BIT_LOGIC | ( | ctxInstrumentationFlags | ) |
References GZ_USE_BIT_LOGIC().
Referenced by GZ_USE_BIT_LOGIC(), GZ_USE_BIT_LOGIC(), GZ_USE_BIT_LOGIC(), GZ_USE_BIT_LOGIC(), GZ_USE_BIT_LOGIC(), GZ_USE_BIT_LOGIC(), GZ_USE_BIT_LOGIC(), GZ_USE_BIT_LOGIC(), and GZ_USE_BIT_LOGIC().
| GZ_USE_BIT_LOGIC | ( | ctxModelDebugFlags | ) |
References GZ_USE_BIT_LOGIC().
| ctxLayer Input | ( | gzUInt32 | values | ) |
References CTX_EXPORT, and Input().
Referenced by ctxInputOutputViewer::getInput(), and Input().
| ctxActivation LeakyRelu | ( | ) |
References CTX_EXPORT, and LeakyRelu().
Referenced by LeakyRelu().
| ctxActivation Linear | ( | ) |
References CTX_EXPORT, and Linear().
Referenced by Linear().
| ctxLayer Multiply | ( | gzUInt32 | values | ) |
Parameter-free element-wise product of two equal whole rank-one float values.
References CTX_EXPORT, and Multiply().
Referenced by Multiply().
| ctxLayer MultiplyBroadcast | ( | gzUInt32 | axis | ) |
Parameter-free product of a rank-four left value and a right value of the same shape except length one along the explicit axis (0..3).
Each result cell multiplies the left cell with the right cell whose axis coordinate is zero.
References CTX_EXPORT, and MultiplyBroadcast().
Referenced by MultiplyBroadcast().
Calls Multiply over equal whole FLOAT values of one already-common revision.
References CTX_EXPORT, and operator*().
Referenced by operator*().
Assigns left * right with the same retained-alias and invalid-result contract.
References CTX_EXPORT, and operator*=().
Referenced by operator*=().
References CTX_EXPORT, and operator+().
References CTX_EXPORT, and operator+().
Calls Add over equal whole FLOAT values of one already-common revision.
References CTX_EXPORT, and operator+().
Referenced by operator+(), operator+(), and operator+().
Assigns left + right and returns left; failure assigns the diagnostic invalid result.
Previously retained aliases keep their original graph revision.
References CTX_EXPORT, and operator+=().
Referenced by operator+=().
| ctxLayer Output | ( | gzUInt32 | values, |
| ctxNeuronType | type = CTX_NEURON_TYPE_DEFAULT ) |
References CTX_EXPORT, CTX_NEURON_TYPE_DEFAULT, and Output().
Referenced by ctxInputOutputViewer::getOutput(), and Output().
| ctxLayer ReduceInverseRms | ( | ) |
Parameter-free whole-value inverse root mean square to one rank-one FLOAT result: r = (sum(x*x)/N + CTX_GRAPH_INVERSE_RMS_EPSILON)^-1/2, lowered as EXP(-0.5*LN(.)).
References CTX_EXPORT, and ReduceInverseRms().
Referenced by ReduceInverseRms(), and ReduceInverseRms().
| ctxLayer ReduceInverseRms | ( | gzUInt32 | axis | ) |
Inverse root mean square over one explicit rank-four axis (0..3), retaining that dimension at length one.
Every output uses only values of the same page. Backprop: dr/dx = -r^3*x/N; the internal statistic delta is not clamped.
References CTX_EXPORT, and ReduceInverseRms().
| ctxLayer ReduceMaximum | ( | ) |
Whole-value maximum; Backprop divides the derivative equally among ties.
References CTX_EXPORT, and ReduceMaximum().
Referenced by ReduceMaximum(), and ReduceMaximum().
| ctxLayer ReduceMaximum | ( | gzUInt32 | axis | ) |
References CTX_EXPORT, and ReduceMaximum().
| ctxLayer ReduceMean | ( | ) |
Parameter-free whole-value arithmetic mean to one rank-one FLOAT result.
References CTX_EXPORT, and ReduceMean().
Referenced by ReduceMean(), and ReduceMean().
| ctxLayer ReduceMean | ( | gzUInt32 | axis | ) |
References CTX_EXPORT, and ReduceMean().
| ctxLayer ReduceProduct | ( | ) |
Whole-value product; derivatives remain defined when operands are zero.
References CTX_EXPORT, and ReduceProduct().
Referenced by ReduceProduct(), and ReduceProduct().
| ctxLayer ReduceProduct | ( | gzUInt32 | axis | ) |
References CTX_EXPORT, and ReduceProduct().
| ctxLayer ReduceSum | ( | ) |
Parameter-free whole-value sum to one rank-one FLOAT result.
References CTX_EXPORT, and ReduceSum().
Referenced by ReduceSum(), and ReduceSum().
| ctxLayer ReduceSum | ( | gzUInt32 | axis | ) |
Reduce one explicit rank-four axis (0..3), retaining that dimension at length one.
References CTX_EXPORT, and ReduceSum().
| ctxLayer RegisteredOperation | ( | const gzString & | key, |
| gzUInt32 | version, | ||
| ctxIndexControl | source, | ||
| ctxIndexControl | filter ) |
Creates a captured registered Convolution occurrence with checked source/filter controls.
References CTX_EXPORT, and RegisteredOperation().
| ctxLayer RegisteredOperation | ( | const gzString & | key, |
| gzUInt32 | version, | ||
| gzUInt32 | values ) |
Creates an occurrence with its captured unary or explicit full-projection role.
References CTX_EXPORT, and RegisteredOperation().
Referenced by RegisteredOperation(), and RegisteredOperation().
| ctxActivation Relu | ( | ) |
References CTX_EXPORT, and Relu().
Referenced by Relu().
Parameter-free rank-one/rank-four shape view preserving every flat value index.
References CTX_EXPORT, and Reshape().
Referenced by Reshape().
Per-page RMS normalization of a rank-four value along one explicit axis: authors "name/rstd" = ReduceInverseRms(axis) and "name" = MultiplyBroadcast(axis) as one atomic edit.
For a feature-major convolution result use axis 0. Failure returns an invalid value with a diagnostic.
References CTX_EXPORT, and RmsNorm().
Referenced by RmsNorm().
| ctxActivation Tanh | ( | ) |
References CTX_EXPORT, and Tanh().
Referenced by Tanh().
| ctxLayer Transpose | ( | const ctxAxisOrder & | axes | ) |
Parameter-free rank-four permutation; axes use features/width/height/depth order.
References CTX_EXPORT, and Transpose().
Referenced by Transpose().