CorTeX Core ABI 7
ToolTech Software · C++ library reference
Loading...
Searching...
No Matches
ctxGraph.h File Reference
#include "ctxCortex.h"
#include "ctxCortexTrainer.h"
#include "gzXML.h"
#include "gzDynamic.h"

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

Enumerations

enum  ctxGraphOperationType {
  CTX_GRAPH_OPERATION_INPUT , CTX_GRAPH_OPERATION_DENSE , CTX_GRAPH_OPERATION_CONVOLUTION_2D , CTX_GRAPH_OPERATION_OUTPUT ,
  CTX_GRAPH_OPERATION_ACTIVATION , CTX_GRAPH_OPERATION_ADD = 5 , CTX_GRAPH_OPERATION_DENSE_FROM = 6 , CTX_GRAPH_OPERATION_MULTIPLY = 7 ,
  CTX_GRAPH_OPERATION_RESHAPE = 8 , CTX_GRAPH_OPERATION_REDUCE_SUM = 9 , CTX_GRAPH_OPERATION_REDUCE_MEAN = 10 , CTX_GRAPH_OPERATION_REDUCE_MAXIMUM = 11 ,
  CTX_GRAPH_OPERATION_REDUCE_PRODUCT = 12 , CTX_GRAPH_OPERATION_TRANSPOSE = 13 , CTX_GRAPH_OPERATION_REDUCE_INVERSE_RMS = 14
}
enum  ctxGraphProjectionKind {
  CTX_GRAPH_PROJECTION_INVALID , CTX_GRAPH_PROJECTION_ZIP , CTX_GRAPH_PROJECTION_FULL , CTX_GRAPH_PROJECTION_PERMUTATION ,
  CTX_GRAPH_PROJECTION_GROUPED_REDUCTION , CTX_GRAPH_PROJECTION_BROADCAST
}
 Semantic projection kind; raw ctxGraphConnection::getSize remains ZIP-only. More...
enum  ctxHandleStatus {
  CTX_HANDLE_STATUS_VALID , CTX_HANDLE_STATUS_EMPTY , CTX_HANDLE_STATUS_NOT_FOUND , CTX_HANDLE_STATUS_AMBIGUOUS ,
  CTX_HANDLE_STATUS_OUT_OF_RANGE , CTX_HANDLE_STATUS_FOREIGN_GRAPH , CTX_HANDLE_STATUS_STALE_REVISION , CTX_HANDLE_STATUS_REMOVED
}
 Describes why a graph-bound handle cannot be used with a graph revision. More...
enum  ctxParameterKind {
  CTX_PARAMETER_INVALID , CTX_PARAMETER_WEIGHT , CTX_PARAMETER_BIAS , CTX_PARAMETER_CONVOLUTION_WEIGHT ,
  CTX_PARAMETER_NAMED
}
enum  ctxPortKind { CTX_PORT_INVALID , CTX_PORT_INPUT , CTX_PORT_OUTPUT }
enum  ctxValueType { CTX_VALUE_TYPE_INVALID , CTX_VALUE_TYPE_FLOAT }
 Element types of the supported retained graph-result contracts. More...
enum  ctxProgramProfile { CTX_PROGRAM_PROFILE_EVALUATE_GENETIC , CTX_PROGRAM_PROFILE_BACKPROP }
enum  ctxExecutionMode { CTX_EXECUTION_MODE_DEBUG , CTX_EXECUTION_MODE_PLAIN , CTX_EXECUTION_MODE_OPTIMIZED }
enum  ctxInstrumentationFlags {
  CTX_INSTRUMENT_NONE = 0 , CTX_INSTRUMENT_SOURCE_CAL = 1 << 0 , CTX_INSTRUMENT_GRAPH_IDENTITY = 1 << 1 , CTX_INSTRUMENT_REGISTER_IDENTITY = 1 << 2 ,
  CTX_INSTRUMENT_NUMERIC_CHECKS = 1 << 3 , CTX_INSTRUMENT_TRACE_POINTS = 1 << 4 , CTX_INSTRUMENT_VM_BACKEND_VERIFY = 1 << 5
}
enum  ctxLifecycleSource { CTX_LIFECYCLE_SOURCE_NONE , CTX_LIFECYCLE_SOURCE_GRAPH , CTX_LIFECYCLE_SOURCE_DIRECT_CORTEX }
 Identifies whether a lifecycle request originates from a graph revision or an already realized direct ctxCortex. More...
enum  ctxLifecycleStage { CTX_LIFECYCLE_STAGE_NONE , CTX_LIFECYCLE_STAGE_BUILD , CTX_LIFECYCLE_STAGE_COMPILE , CTX_LIFECYCLE_STAGE_PROPAGATE }
enum  ctxLifecycleError {
  CTX_LIFECYCLE_ERROR_NONE , CTX_LIFECYCLE_ERROR_INVALID_REQUEST , CTX_LIFECYCLE_ERROR_INVALID_GRAPH , CTX_LIFECYCLE_ERROR_INVALID_BINDING ,
  CTX_LIFECYCLE_ERROR_FOREIGN_MODEL , CTX_LIFECYCLE_ERROR_FOREIGN_GRAPH , CTX_LIFECYCLE_ERROR_STALE_REVISION , CTX_LIFECYCLE_ERROR_PROFILE_MISMATCH ,
  CTX_LIFECYCLE_ERROR_BUILD_FAILED , CTX_LIFECYCLE_ERROR_COMPILE_FAILED , CTX_LIFECYCLE_ERROR_PROPAGATE_FAILED
}
enum  ctxBuildLayoutPolicy { CTX_BUILD_LAYOUT_INVALID , CTX_BUILD_LAYOUT_GENERIC_SCALAR_V1 }
 Versioned logical scalar layout; cache readiness is not a layout change. More...
enum  ctxModelDebugFlags {
  CTX_MODEL_DEBUG_NONE = 0 , CTX_MODEL_DEBUG_SUMMARY = 1 << 0 , CTX_MODEL_DEBUG_GRAPH = 1 << 1 , CTX_MODEL_DEBUG_OPERATIONS = 1 << 2 ,
  CTX_MODEL_DEBUG_CORTEX = 1 << 3 , CTX_MODEL_DEBUG_CONTEXT = 1 << 4 , CTX_MODEL_DEBUG_TRAINER = 1 << 5 , CTX_MODEL_DEBUG_DIAGNOSTICS = 1 << 6 ,
  CTX_MODEL_DEBUG_ALL = 0x7f
}

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)

Macro Definition Documentation

◆ CTX_GRAPH_INVERSE_RMS_EPSILON

#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.

Typedef Documentation

◆ ctxGraf

typedef ctxGraph ctxGraf

Definition at line 1286 of file ctxGraph.h.

Enumeration Type Documentation

◆ 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.

◆ ctxExecutionMode

Enumerator
CTX_EXECUTION_MODE_DEBUG 
CTX_EXECUTION_MODE_PLAIN 
CTX_EXECUTION_MODE_OPTIMIZED 

Definition at line 1297 of file ctxGraph.h.

◆ ctxGraphOperationType

Enumerator
CTX_GRAPH_OPERATION_INPUT 
CTX_GRAPH_OPERATION_DENSE 
CTX_GRAPH_OPERATION_CONVOLUTION_2D 
CTX_GRAPH_OPERATION_OUTPUT 
CTX_GRAPH_OPERATION_ACTIVATION 
CTX_GRAPH_OPERATION_ADD 
CTX_GRAPH_OPERATION_DENSE_FROM 
CTX_GRAPH_OPERATION_MULTIPLY 
CTX_GRAPH_OPERATION_RESHAPE 
CTX_GRAPH_OPERATION_REDUCE_SUM 
CTX_GRAPH_OPERATION_REDUCE_MEAN 
CTX_GRAPH_OPERATION_REDUCE_MAXIMUM 
CTX_GRAPH_OPERATION_REDUCE_PRODUCT 
CTX_GRAPH_OPERATION_TRANSPOSE 
CTX_GRAPH_OPERATION_REDUCE_INVERSE_RMS 

Definition at line 54 of file ctxGraph.h.

◆ ctxGraphProjectionKind

Semantic projection kind; raw ctxGraphConnection::getSize remains ZIP-only.

Enumerator
CTX_GRAPH_PROJECTION_INVALID 
CTX_GRAPH_PROJECTION_ZIP 
CTX_GRAPH_PROJECTION_FULL 
CTX_GRAPH_PROJECTION_PERMUTATION 
CTX_GRAPH_PROJECTION_GROUPED_REDUCTION 
CTX_GRAPH_PROJECTION_BROADCAST 

Each destination cell reads the source cell with its broadcast coordinate at zero.

Definition at line 77 of file ctxGraph.h.

◆ ctxHandleStatus

Describes why a graph-bound handle cannot be used with a graph revision.

Enumerator
CTX_HANDLE_STATUS_VALID 
CTX_HANDLE_STATUS_EMPTY 
CTX_HANDLE_STATUS_NOT_FOUND 
CTX_HANDLE_STATUS_AMBIGUOUS 
CTX_HANDLE_STATUS_OUT_OF_RANGE 
CTX_HANDLE_STATUS_FOREIGN_GRAPH 
CTX_HANDLE_STATUS_STALE_REVISION 
CTX_HANDLE_STATUS_REMOVED 

Definition at line 116 of file ctxGraph.h.

◆ ctxInstrumentationFlags

Enumerator
CTX_INSTRUMENT_NONE 
CTX_INSTRUMENT_SOURCE_CAL 
CTX_INSTRUMENT_GRAPH_IDENTITY 
CTX_INSTRUMENT_REGISTER_IDENTITY 
CTX_INSTRUMENT_NUMERIC_CHECKS 
CTX_INSTRUMENT_TRACE_POINTS 
CTX_INSTRUMENT_VM_BACKEND_VERIFY 

Definition at line 1304 of file ctxGraph.h.

◆ ctxLifecycleError

Enumerator
CTX_LIFECYCLE_ERROR_NONE 
CTX_LIFECYCLE_ERROR_INVALID_REQUEST 
CTX_LIFECYCLE_ERROR_INVALID_GRAPH 
CTX_LIFECYCLE_ERROR_INVALID_BINDING 
CTX_LIFECYCLE_ERROR_FOREIGN_MODEL 
CTX_LIFECYCLE_ERROR_FOREIGN_GRAPH 
CTX_LIFECYCLE_ERROR_STALE_REVISION 
CTX_LIFECYCLE_ERROR_PROFILE_MISMATCH 
CTX_LIFECYCLE_ERROR_BUILD_FAILED 
CTX_LIFECYCLE_ERROR_COMPILE_FAILED 
CTX_LIFECYCLE_ERROR_PROPAGATE_FAILED 

Definition at line 1346 of file ctxGraph.h.

◆ 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.

◆ 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.

◆ ctxModelDebugFlags

Enumerator
CTX_MODEL_DEBUG_NONE 
CTX_MODEL_DEBUG_SUMMARY 
CTX_MODEL_DEBUG_GRAPH 
CTX_MODEL_DEBUG_OPERATIONS 
CTX_MODEL_DEBUG_CORTEX 
CTX_MODEL_DEBUG_CONTEXT 
CTX_MODEL_DEBUG_TRAINER 
CTX_MODEL_DEBUG_DIAGNOSTICS 
CTX_MODEL_DEBUG_ALL 

Definition at line 1719 of file ctxGraph.h.

◆ 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.

◆ ctxPortKind

Enumerator
CTX_PORT_INVALID 
CTX_PORT_INPUT 
CTX_PORT_OUTPUT 

Definition at line 351 of file ctxGraph.h.

◆ ctxProgramProfile

Enumerator
CTX_PROGRAM_PROFILE_EVALUATE_GENETIC 
CTX_PROGRAM_PROFILE_BACKPROP 

Definition at line 1291 of file ctxGraph.h.

◆ 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.

Function Documentation

◆ Activation()

ctxLayer Activation ( gzUInt32 values,
const ctxActivation & activation )

References Activation(), and CTX_EXPORT.

Referenced by Activation().

◆ Add()

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().

◆ Convolution2D()

◆ Dense()

ctxLayer Dense ( gzUInt32 neurons,
ctxNeuronType type = CTX_NEURON_TYPE_DEFAULT )

References CTX_EXPORT, CTX_NEURON_TYPE_DEFAULT, and Dense().

Referenced by Dense().

◆ DenseFrom()

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() [1/2]

◆ GZ_USE_BIT_LOGIC() [2/2]

GZ_USE_BIT_LOGIC ( ctxModelDebugFlags )

References GZ_USE_BIT_LOGIC().

◆ Input()

ctxLayer Input ( gzUInt32 values)

References CTX_EXPORT, and Input().

Referenced by ctxInputOutputViewer::getInput(), and Input().

◆ LeakyRelu()

ctxActivation LeakyRelu ( )

References CTX_EXPORT, and LeakyRelu().

Referenced by LeakyRelu().

◆ Linear()

ctxActivation Linear ( )

References CTX_EXPORT, and Linear().

Referenced by Linear().

◆ Multiply()

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().

◆ MultiplyBroadcast()

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().

◆ operator*()

ctxValue operator* ( const ctxValue & left,
const ctxValue & right )

Calls Multiply over equal whole FLOAT values of one already-common revision.

References CTX_EXPORT, and operator*().

Referenced by operator*().

◆ operator*=()

ctxValue & operator*= ( ctxValue & left,
const ctxValue & right )

Assigns left * right with the same retained-alias and invalid-result contract.

References CTX_EXPORT, and operator*=().

Referenced by operator*=().

◆ operator+() [1/3]

ctxGraph operator+ ( const ctxGraph & graph,
const ctxLayer & layer )

References CTX_EXPORT, and operator+().

◆ operator+() [2/3]

ctxGraph operator+ ( const ctxLayer & left,
const ctxLayer & right )

References CTX_EXPORT, and operator+().

◆ operator+() [3/3]

ctxValue operator+ ( const ctxValue & left,
const ctxValue & right )

Calls Add over equal whole FLOAT values of one already-common revision.

References CTX_EXPORT, and operator+().

Referenced by operator+(), operator+(), and operator+().

◆ operator+=()

ctxValue & operator+= ( ctxValue & left,
const ctxValue & right )

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+=().

◆ Output()

◆ ReduceInverseRms() [1/2]

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().

◆ ReduceInverseRms() [2/2]

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().

◆ ReduceMaximum() [1/2]

ctxLayer ReduceMaximum ( )

Whole-value maximum; Backprop divides the derivative equally among ties.

References CTX_EXPORT, and ReduceMaximum().

Referenced by ReduceMaximum(), and ReduceMaximum().

◆ ReduceMaximum() [2/2]

ctxLayer ReduceMaximum ( gzUInt32 axis)

References CTX_EXPORT, and ReduceMaximum().

◆ ReduceMean() [1/2]

ctxLayer ReduceMean ( )

Parameter-free whole-value arithmetic mean to one rank-one FLOAT result.

References CTX_EXPORT, and ReduceMean().

Referenced by ReduceMean(), and ReduceMean().

◆ ReduceMean() [2/2]

ctxLayer ReduceMean ( gzUInt32 axis)

References CTX_EXPORT, and ReduceMean().

◆ ReduceProduct() [1/2]

ctxLayer ReduceProduct ( )

Whole-value product; derivatives remain defined when operands are zero.

References CTX_EXPORT, and ReduceProduct().

Referenced by ReduceProduct(), and ReduceProduct().

◆ ReduceProduct() [2/2]

ctxLayer ReduceProduct ( gzUInt32 axis)

References CTX_EXPORT, and ReduceProduct().

◆ ReduceSum() [1/2]

ctxLayer ReduceSum ( )

Parameter-free whole-value sum to one rank-one FLOAT result.

References CTX_EXPORT, and ReduceSum().

Referenced by ReduceSum(), and ReduceSum().

◆ ReduceSum() [2/2]

ctxLayer ReduceSum ( gzUInt32 axis)

Reduce one explicit rank-four axis (0..3), retaining that dimension at length one.

References CTX_EXPORT, and ReduceSum().

◆ RegisteredOperation() [1/2]

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().

◆ RegisteredOperation() [2/2]

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().

◆ Relu()

ctxActivation Relu ( )

References CTX_EXPORT, and Relu().

Referenced by Relu().

◆ Reshape()

ctxLayer Reshape ( const ctxShape & shape)

Parameter-free rank-one/rank-four shape view preserving every flat value index.

References CTX_EXPORT, and Reshape().

Referenced by Reshape().

◆ RmsNorm()

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.

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().

◆ Tanh()

ctxActivation Tanh ( )

References CTX_EXPORT, and Tanh().

Referenced by Tanh().

◆ Transpose()

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().