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

#include <ctxGraph.h>

Public Member Functions

 ctxLayer ()
ctxLayer named (const gzString &name) const
ctxLayer activation (const ctxActivation &activation) const
ctxLayer sharedBias (gzBool shared) const
ctxLayer debugFeatures (gzUInt32 features) const
ctxLayer data (const ctxOperationData &data) const
 Captures immutable occurrence data; the retained schema validates its contract.
ctxValue operator() (const ctxValue &input) const
 Authors one unary occurrence, including named FLOAT inventories or explicit DenseFrom.
ctxValue operator() (const ctxValue &left, const ctxValue &right) const
 Authors Add or Multiply from two whole values bound to one common revision.

Friends

class ctxGraph
ctxLayer Input (gzUInt32 values)
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).
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.

Detailed Description

Definition at line 178 of file ctxGraph.h.

Constructor & Destructor Documentation

◆ ctxLayer()

Member Function Documentation

◆ activation()

ctxLayer ctxLayer::activation ( const ctxActivation & activation) const

References activation(), CTX_EXPORT, and ctxLayer().

Referenced by Activation, and activation().

◆ data()

ctxLayer ctxLayer::data ( const ctxOperationData & data) const

Captures immutable occurrence data; the retained schema validates its contract.

References CTX_EXPORT, ctxLayer(), and data().

Referenced by data().

◆ debugFeatures()

ctxLayer ctxLayer::debugFeatures ( gzUInt32 features) const

References CTX_EXPORT, and ctxLayer().

◆ named()

ctxLayer ctxLayer::named ( const gzString & name) const

References CTX_EXPORT, and ctxLayer().

◆ operator()() [1/2]

ctxValue ctxLayer::operator() ( const ctxValue & input) const

Authors one unary occurrence, including named FLOAT inventories or explicit DenseFrom.

References CTX_EXPORT.

◆ operator()() [2/2]

ctxValue ctxLayer::operator() ( const ctxValue & left,
const ctxValue & right ) const

Authors Add or Multiply from two whole values bound to one common revision.

References CTX_EXPORT.

◆ sharedBias()

ctxLayer ctxLayer::sharedBias ( gzBool shared) const

References CTX_EXPORT, and ctxLayer().

◆ Activation

ctxLayer Activation ( gzUInt32 values,
const ctxActivation & activation )
friend

References activation(), CTX_EXPORT, and ctxLayer().

◆ Add

ctxLayer Add ( gzUInt32 values)
friend

Parameter-free element-wise sum of two equal whole rank-one float values.

References CTX_EXPORT, and ctxLayer().

◆ Convolution2D

ctxLayer Convolution2D ( ctxIndexControl source,
ctxIndexControl filter,
ctxNeuronType type = CTX_NEURON_TYPE_DEFAULT )
friend

References CTX_EXPORT, and ctxLayer().

◆ ctxGraph

friend class ctxGraph
friend

Definition at line 196 of file ctxGraph.h.

References ctxGraph.

Referenced by ctxGraph.

◆ Dense

ctxLayer Dense ( gzUInt32 neurons,
ctxNeuronType type = CTX_NEURON_TYPE_DEFAULT )
friend

References CTX_EXPORT, and ctxLayer().

◆ DenseFrom

ctxLayer DenseFrom ( gzUInt32 neurons,
ctxNeuronType type = CTX_NEURON_TYPE_DEFAULT )
friend

Full Dense projection from one explicitly selected whole rank-one FLOAT value.

References CTX_EXPORT, and ctxLayer().

◆ Input

ctxLayer Input ( gzUInt32 values)
friend

References CTX_EXPORT, and ctxLayer().

◆ Multiply

ctxLayer Multiply ( gzUInt32 values)
friend

Parameter-free element-wise product of two equal whole rank-one float values.

References CTX_EXPORT, and ctxLayer().

◆ MultiplyBroadcast

ctxLayer MultiplyBroadcast ( gzUInt32 axis)
friend

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

◆ Output

ctxLayer Output ( gzUInt32 values,
ctxNeuronType type = CTX_NEURON_TYPE_DEFAULT )
friend

References CTX_EXPORT, and ctxLayer().

◆ ReduceInverseRms [1/2]

ctxLayer ReduceInverseRms ( )
friend

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

◆ ReduceInverseRms [2/2]

ctxLayer ReduceInverseRms ( gzUInt32 axis)
friend

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

◆ ReduceMaximum [1/2]

ctxLayer ReduceMaximum ( )
friend

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

References CTX_EXPORT, and ctxLayer().

◆ ReduceMaximum [2/2]

ctxLayer ReduceMaximum ( gzUInt32 axis)
friend

References CTX_EXPORT, and ctxLayer().

◆ ReduceMean [1/2]

ctxLayer ReduceMean ( )
friend

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

References CTX_EXPORT, and ctxLayer().

◆ ReduceMean [2/2]

ctxLayer ReduceMean ( gzUInt32 axis)
friend

References CTX_EXPORT, and ctxLayer().

◆ ReduceProduct [1/2]

ctxLayer ReduceProduct ( )
friend

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

References CTX_EXPORT, and ctxLayer().

◆ ReduceProduct [2/2]

ctxLayer ReduceProduct ( gzUInt32 axis)
friend

References CTX_EXPORT, and ctxLayer().

◆ ReduceSum [1/2]

ctxLayer ReduceSum ( )
friend

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

References CTX_EXPORT, and ctxLayer().

◆ ReduceSum [2/2]

ctxLayer ReduceSum ( gzUInt32 axis)
friend

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

References CTX_EXPORT, and ctxLayer().

◆ RegisteredOperation [1/2]

ctxLayer RegisteredOperation ( const gzString & key,
gzUInt32 version,
ctxIndexControl source,
ctxIndexControl filter )
friend

Creates a captured registered Convolution occurrence with checked source/filter controls.

References CTX_EXPORT, and ctxLayer().

◆ RegisteredOperation [2/2]

ctxLayer RegisteredOperation ( const gzString & key,
gzUInt32 version,
gzUInt32 values )
friend

Creates an occurrence with its captured unary or explicit full-projection role.

References CTX_EXPORT, and ctxLayer().

◆ Reshape

ctxLayer Reshape ( const ctxShape & shape)
friend

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

References CTX_EXPORT, and ctxLayer().

◆ Transpose

ctxLayer Transpose ( const ctxAxisOrder & axes)
friend

Parameter-free rank-four permutation; axes use features/width/height/depth order.

References CTX_EXPORT, and ctxLayer().


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