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

#include <ctxCortexLayer.h>

Inheritance diagram for ctxCortexLayer:
ctxOutput ctxParameterLayer ctxBatchTargetBinding ctxDummyOutput ctxInputOutputUnifier ctxMNISTOutput ctxIOImageSampler

Public Member Functions

virtual gzType * getType () const
 ctxCortexLayer ()
virtual ~ctxCortexLayer ()
gzVoid addLayerNeurons (gzUInt32 layerNeurons, ctxNeuronType type=CTX_NEURON_TYPE_DEFAULT, gzUInt32 synapses=0, ctxContext *shared=NULL)
gzVoid addConvolutionNeurons (ctxIndexControl source, ctxIndexControl filter, ctxContext *context, gzUInt32 maxNumberOfFeaturesDebug=0, ctxNeuronType type=CTX_NEURON_TYPE_DEFAULT, gzBool sharedBias=TRUE, gzUInt32 source_offset=0)
gzVoid addMappedConvolutionSynapses (gzUInt32 sourceFeatureIndex, gzUInt32 sourceFeatureCount, gzUInt32 destinationFeatureIndex, gzUInt32 destinationFeatureCount, gzUInt32 sourceWidth, gzUInt32 sourceHeight, gzUInt32 sourceDepth, gzUInt32 destinationWidth, gzUInt32 destinationHeight, gzUInt32 destinationDepth, gzUInt32 destinationOriginX, gzUInt32 destinationOriginY, gzUInt32 destinationOriginZ, gzUInt32 regionWidth, gzUInt32 regionHeight, gzUInt32 regionDepth, gzInt32 sourceOriginX, gzInt32 sourceOriginY, gzInt32 sourceOriginZ, gzUInt32 kernelWidth, gzUInt32 kernelHeight, gzUInt32 kernelDepth, gzUInt32 strideX, gzUInt32 strideY, gzUInt32 strideZ, gzUInt32 paddingLeft, gzUInt32 paddingTop, gzUInt32 paddingFront, gzUInt32 dilationX, gzUInt32 dilationY, gzUInt32 dilationZ, ctxCortexLayer *sourceLayer, ctxInput *input, ctxContext *context, gzUInt32 parameterBaseIndex, gzUInt32 mappingOccurrenceID, gzUInt32 parameterGroupID)
gzVoid addPoolingNeurons (ctxIndexControl source, ctxIndexControl filter, ctxContext *context=NULL, gzUInt32 maxNumberOfFeaturesDebug=0, ctxNeuronType type=CTX_NEURON_TYPE_MAX, gzUInt32 source_offset=0)
gzVoid setFeatureStart (ctxContext *context, gzUInt32 id, gzUInt32 features, gzUInt32 width, gzUInt32 height, gzUInt32 depth)
gzVoid setDropConnection (gzBool on)
gzVoid addNeuron (ctxNeuron *neuron)
gzVoid removeNeuron (ctxNeuron *neuron)
gzVoid addSubLayer (ctxCortexLayer *layer, ctxLayerType type=CTX_IN_OUT_LAYER)
gzVoid removeSubLayer (ctxCortexLayer *layer)
ctxCortexLayer * getSubLayer (gzUInt32 layerIndex, ctxLayerType type=CTX_INPUT_LAYER)
ctxNeuron * getNeuron (gzUInt32 neuronIndex)
gzUInt32 getNeuronCount ()
gzRefList< ctxCortexLayer > & getSubInputLayerList ()
gzRefList< ctxCortexLayer > & getSubHiddenLayerList ()
gzRefList< ctxCortexLayer > & getSubOutputLayerList ()
gzVoid connectInput (ctxCortexLayer *input)
gzVoid connectInput (ctxNeuron *input)
gzVoid connectInput (ctxInput *input)
gzVoid connectOutput (ctxNeuron *output)
gzVoid connectOutput (ctxCortexLayer *output)
gzVoid setDebugFlags (ctxContext *context, ctxDebugFlags flags, gzUInt32 layerID, gzUInt32 maxCount=5, gzBool onSynapses=FALSE, gzUInt32 maxFeature=CTX_UNDEFINED_INDEX)
gzVoid debugConnections (gzUInt32 index=CTX_UNDEFINED_INDEX)
virtual gzReference * clone () const
 Built in clone.

Static Public Member Functions

static gzType * getClassType ()

Protected Attributes

gzDynamicArray< ctxNeuronPtr > m_layerNeurons
gzRefList< ctxCortexLayer > m_subInputLayers
gzRefList< ctxCortexLayer > m_subHiddenLayers
gzRefList< ctxCortexLayer > m_subOutputLayers

Friends

class ctxCortex

Detailed Description

Definition at line 108 of file ctxCortexLayer.h.

Constructor & Destructor Documentation

◆ ctxCortexLayer()

ctxCortexLayer::ctxCortexLayer ( )

◆ ~ctxCortexLayer()

virtual ctxCortexLayer::~ctxCortexLayer ( )
virtual

References CTX_EXPORT.

Member Function Documentation

◆ addConvolutionNeurons()

gzVoid ctxCortexLayer::addConvolutionNeurons ( ctxIndexControl source,
ctxIndexControl filter,
ctxContext * context,
gzUInt32 maxNumberOfFeaturesDebug = 0,
ctxNeuronType type = CTX_NEURON_TYPE_DEFAULT,
gzBool sharedBias = TRUE,
gzUInt32 source_offset = 0 )

◆ addLayerNeurons()

gzVoid ctxCortexLayer::addLayerNeurons ( gzUInt32 layerNeurons,
ctxNeuronType type = CTX_NEURON_TYPE_DEFAULT,
gzUInt32 synapses = 0,
ctxContext * shared = NULL )

◆ addMappedConvolutionSynapses()

gzVoid ctxCortexLayer::addMappedConvolutionSynapses ( gzUInt32 sourceFeatureIndex,
gzUInt32 sourceFeatureCount,
gzUInt32 destinationFeatureIndex,
gzUInt32 destinationFeatureCount,
gzUInt32 sourceWidth,
gzUInt32 sourceHeight,
gzUInt32 sourceDepth,
gzUInt32 destinationWidth,
gzUInt32 destinationHeight,
gzUInt32 destinationDepth,
gzUInt32 destinationOriginX,
gzUInt32 destinationOriginY,
gzUInt32 destinationOriginZ,
gzUInt32 regionWidth,
gzUInt32 regionHeight,
gzUInt32 regionDepth,
gzInt32 sourceOriginX,
gzInt32 sourceOriginY,
gzInt32 sourceOriginZ,
gzUInt32 kernelWidth,
gzUInt32 kernelHeight,
gzUInt32 kernelDepth,
gzUInt32 strideX,
gzUInt32 strideY,
gzUInt32 strideZ,
gzUInt32 paddingLeft,
gzUInt32 paddingTop,
gzUInt32 paddingFront,
gzUInt32 dilationX,
gzUInt32 dilationY,
gzUInt32 dilationZ,
ctxCortexLayer * sourceLayer,
ctxInput * input,
ctxContext * context,
gzUInt32 parameterBaseIndex,
gzUInt32 mappingOccurrenceID,
gzUInt32 parameterGroupID )

References CTX_EXPORT, and ctxCortexLayer().

◆ addNeuron()

gzVoid ctxCortexLayer::addNeuron ( ctxNeuron * neuron)

References CTX_EXPORT.

◆ addPoolingNeurons()

gzVoid ctxCortexLayer::addPoolingNeurons ( ctxIndexControl source,
ctxIndexControl filter,
ctxContext * context = NULL,
gzUInt32 maxNumberOfFeaturesDebug = 0,
ctxNeuronType type = CTX_NEURON_TYPE_MAX,
gzUInt32 source_offset = 0 )

References CTX_EXPORT, and CTX_NEURON_TYPE_MAX.

◆ addSubLayer()

gzVoid ctxCortexLayer::addSubLayer ( ctxCortexLayer * layer,
ctxLayerType type = CTX_IN_OUT_LAYER )

◆ clone()

virtual gzReference * ctxCortexLayer::clone ( ) const
virtual

Built in clone.

Reimplemented in ctxParameterLayer.

References CTX_EXPORT.

◆ connectInput() [1/3]

gzVoid ctxCortexLayer::connectInput ( ctxCortexLayer * input)

References CTX_EXPORT, and ctxCortexLayer().

◆ connectInput() [2/3]

gzVoid ctxCortexLayer::connectInput ( ctxInput * input)

References CTX_EXPORT.

◆ connectInput() [3/3]

gzVoid ctxCortexLayer::connectInput ( ctxNeuron * input)

References CTX_EXPORT.

◆ connectOutput() [1/2]

gzVoid ctxCortexLayer::connectOutput ( ctxCortexLayer * output)

References CTX_EXPORT, and ctxCortexLayer().

◆ connectOutput() [2/2]

gzVoid ctxCortexLayer::connectOutput ( ctxNeuron * output)

References CTX_EXPORT.

◆ debugConnections()

gzVoid ctxCortexLayer::debugConnections ( gzUInt32 index = CTX_UNDEFINED_INDEX)

References CTX_EXPORT, and CTX_UNDEFINED_INDEX.

◆ getClassType()

gzType * ctxCortexLayer::getClassType ( )
static

References CTX_EXPORT.

◆ getNeuron()

ctxNeuron * ctxCortexLayer::getNeuron ( gzUInt32 neuronIndex)

References CTX_EXPORT.

◆ getNeuronCount()

gzUInt32 ctxCortexLayer::getNeuronCount ( )

References CTX_EXPORT.

◆ getSubHiddenLayerList()

gzRefList< ctxCortexLayer > & ctxCortexLayer::getSubHiddenLayerList ( )
inline

Definition at line 151 of file ctxCortexLayer.h.

References CTX_EXPORT, and m_subHiddenLayers.

◆ getSubInputLayerList()

gzRefList< ctxCortexLayer > & ctxCortexLayer::getSubInputLayerList ( )
inline

Definition at line 150 of file ctxCortexLayer.h.

References CTX_EXPORT, and m_subInputLayers.

◆ getSubLayer()

ctxCortexLayer * ctxCortexLayer::getSubLayer ( gzUInt32 layerIndex,
ctxLayerType type = CTX_INPUT_LAYER )

◆ getSubOutputLayerList()

gzRefList< ctxCortexLayer > & ctxCortexLayer::getSubOutputLayerList ( )
inline

Definition at line 152 of file ctxCortexLayer.h.

References CTX_EXPORT, and m_subOutputLayers.

◆ getType()

virtual gzType * ctxCortexLayer::getType ( ) const
virtual

Reimplemented in ctxOutput, and ctxParameterLayer.

◆ removeNeuron()

gzVoid ctxCortexLayer::removeNeuron ( ctxNeuron * neuron)

References CTX_EXPORT.

◆ removeSubLayer()

gzVoid ctxCortexLayer::removeSubLayer ( ctxCortexLayer * layer)

References CTX_EXPORT, and ctxCortexLayer().

◆ setDebugFlags()

gzVoid ctxCortexLayer::setDebugFlags ( ctxContext * context,
ctxDebugFlags flags,
gzUInt32 layerID,
gzUInt32 maxCount = 5,
gzBool onSynapses = FALSE,
gzUInt32 maxFeature = CTX_UNDEFINED_INDEX )

References CTX_EXPORT, and CTX_UNDEFINED_INDEX.

◆ setDropConnection()

gzVoid ctxCortexLayer::setDropConnection ( gzBool on)

References CTX_EXPORT.

◆ setFeatureStart()

gzVoid ctxCortexLayer::setFeatureStart ( ctxContext * context,
gzUInt32 id,
gzUInt32 features,
gzUInt32 width,
gzUInt32 height,
gzUInt32 depth )

References CTX_EXPORT.

◆ ctxCortex

friend class ctxCortex
friend

Definition at line 170 of file ctxCortexLayer.h.

References ctxCortex.

Referenced by ctxCortex.

Member Data Documentation

◆ m_layerNeurons

gzDynamicArray<ctxNeuronPtr> ctxCortexLayer::m_layerNeurons
protected

Definition at line 172 of file ctxCortexLayer.h.

◆ m_subHiddenLayers

gzRefList<ctxCortexLayer> ctxCortexLayer::m_subHiddenLayers
protected

Definition at line 175 of file ctxCortexLayer.h.

Referenced by getSubHiddenLayerList().

◆ m_subInputLayers

gzRefList<ctxCortexLayer> ctxCortexLayer::m_subInputLayers
protected

Definition at line 174 of file ctxCortexLayer.h.

Referenced by getSubInputLayerList().

◆ m_subOutputLayers

gzRefList<ctxCortexLayer> ctxCortexLayer::m_subOutputLayers
protected

Definition at line 176 of file ctxCortexLayer.h.

Referenced by getSubOutputLayerList().


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