22#ifndef __CTX_CORTEX_LAYER_H__
23#define __CTX_CORTEX_LAYER_H__
60 gzUInt32 depth_steps_ =
CTX_USE_DEFAULT_VALUE):
features(features_),
width(width_),
height(height_),
depth(depth_),
width_stride(width_stride_),
height_stride(height_stride_),
depth_stride(depth_stride_),
padding_left(padding_left_),
padding_right(padding_right_),
padding_top(padding_top_),
padding_bottom(padding_bottom_),
padding_front(padding_front_),
padding_back(padding_back_),
width_steps(width_steps_),
height_steps(height_steps_),
depth_steps(depth_steps_) {}
62 gzVoid
updateDefaults(gzUInt32 default_width_stride,gzUInt32 default_height_stride,gzUInt32 default_depth_stride,gzUInt32 block_width,gzUInt32 block_height, gzUInt32 block_depth)
120 gzUInt32 sourceFeatureCount, gzUInt32 destinationFeatureIndex,
121 gzUInt32 destinationFeatureCount, gzUInt32 sourceWidth, gzUInt32 sourceHeight,
122 gzUInt32 sourceDepth, gzUInt32 destinationWidth, gzUInt32 destinationHeight,
123 gzUInt32 destinationDepth, gzUInt32 destinationOriginX,
124 gzUInt32 destinationOriginY, gzUInt32 destinationOriginZ,
125 gzUInt32 regionWidth, gzUInt32 regionHeight, gzUInt32 regionDepth,
126 gzInt32 sourceOriginX, gzInt32 sourceOriginY,
127 gzInt32 sourceOriginZ, gzUInt32 kernelWidth, gzUInt32 kernelHeight,
128 gzUInt32 kernelDepth, gzUInt32 strideX, gzUInt32 strideY, gzUInt32 strideZ,
129 gzUInt32 paddingLeft, gzUInt32 paddingTop, gzUInt32 paddingFront,
130 gzUInt32 dilationX, gzUInt32 dilationY, gzUInt32 dilationZ,
132 gzUInt32 parameterBaseIndex, gzUInt32 mappingOccurrenceID,
133 gzUInt32 parameterGroupID);
gzVoid addNeuron(ctxNeuron *neuron)
virtual gzReference * clone() const
Built in clone.
gzUInt32 getNeuronCount()
gzRefList< ctxCortexLayer > & getSubInputLayerList()
gzVoid connectInput(ctxCortexLayer *input)
ctxNeuron * getNeuron(gzUInt32 neuronIndex)
gzVoid removeSubLayer(ctxCortexLayer *layer)
gzRefList< ctxCortexLayer > & getSubHiddenLayerList()
gzRefList< ctxCortexLayer > m_subInputLayers
gzVoid connectOutput(ctxCortexLayer *output)
gzVoid addLayerNeurons(gzUInt32 layerNeurons, ctxNeuronType type=CTX_NEURON_TYPE_DEFAULT, gzUInt32 synapses=0, ctxContext *shared=NULL)
gzRefList< ctxCortexLayer > m_subHiddenLayers
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 addSubLayer(ctxCortexLayer *layer, ctxLayerType type=CTX_IN_OUT_LAYER)
gzVoid setDebugFlags(ctxContext *context, ctxDebugFlags flags, gzUInt32 layerID, gzUInt32 maxCount=5, gzBool onSynapses=FALSE, gzUInt32 maxFeature=CTX_UNDEFINED_INDEX)
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)
gzDynamicArray< ctxNeuronPtr > m_layerNeurons
gzVoid connectInput(ctxNeuron *input)
virtual ~ctxCortexLayer()
gzRefList< ctxCortexLayer > & getSubOutputLayerList()
gzVoid connectInput(ctxInput *input)
gzVoid setFeatureStart(ctxContext *context, gzUInt32 id, gzUInt32 features, gzUInt32 width, gzUInt32 height, gzUInt32 depth)
gzVoid setDropConnection(gzBool on)
gzVoid addPoolingNeurons(ctxIndexControl source, ctxIndexControl filter, ctxContext *context=NULL, gzUInt32 maxNumberOfFeaturesDebug=0, ctxNeuronType type=CTX_NEURON_TYPE_MAX, gzUInt32 source_offset=0)
gzVoid removeNeuron(ctxNeuron *neuron)
ctxCortexLayer * getSubLayer(gzUInt32 layerIndex, ctxLayerType type=CTX_INPUT_LAYER)
gzVoid debugConnections(gzUInt32 index=CTX_UNDEFINED_INDEX)
gzRefList< ctxCortexLayer > m_subOutputLayers
gzVoid connectOutput(ctxNeuron *output)
gzVoid addLayer(ctxCortexLayer *layer)
ctxCortexLayer * addConvolutionLayer(ctxIndexControl source, ctxIndexControl filter, ctxContext *context, gzUInt32 maxNumberOfFeaturesDebug=0, ctxNeuronType type=CTX_NEURON_TYPE_DEFAULT, gzBool sharedBias=TRUE)
gzRefList< ctxCortexLayer > & getLayerList()
ctxCortexLayer * addPoolingLayer(ctxIndexControl source, ctxIndexControl filter, ctxContext *context=NULL, gzUInt32 maxNumberOfFeaturesDebug=0, ctxNeuronType type=CTX_NEURON_TYPE_MAX)
gzVoid setDropConnection(gzBool on)
ctxCortexLayer * getLayer(gzUInt32 layerIndex, gzBool indexFromLeft=TRUE)
gzRefList< ctxCortexLayer > m_layerList
gzVoid addNeuronLayers(gzUInt32 layers, gzUInt32 layerNeurons, ctxNeuronType type=CTX_NEURON_TYPE_DEFAULT)
gzVoid removeLayer(ctxCortexLayer *layer)
gzVoid updateDefaults(gzUInt32 default_width_stride, gzUInt32 default_height_stride, gzUInt32 default_depth_stride, gzUInt32 block_width, gzUInt32 block_height, gzUInt32 block_depth)
ctxIndexControl(gzUInt32 features_, gzUInt32 width_, gzUInt32 height_, gzUInt32 depth_, gzUInt32 width_stride_=CTX_USE_DEFAULT_VALUE, gzUInt32 height_stride_=CTX_USE_DEFAULT_VALUE, gzUInt32 depth_stride_=CTX_USE_DEFAULT_VALUE, gzUInt32 padding_left_=CTX_USE_DEFAULT_VALUE, gzUInt32 padding_right_=CTX_USE_DEFAULT_VALUE, gzUInt32 padding_top_=CTX_USE_DEFAULT_VALUE, gzUInt32 padding_bottom_=CTX_USE_DEFAULT_VALUE, gzUInt32 padding_front_=CTX_USE_DEFAULT_VALUE, gzUInt32 padding_back_=CTX_USE_DEFAULT_VALUE, gzUInt32 width_steps_=CTX_USE_DEFAULT_VALUE, gzUInt32 height_steps_=CTX_USE_DEFAULT_VALUE, gzUInt32 depth_steps_=CTX_USE_DEFAULT_VALUE)
@ CTX_NEURON_TYPE_DEFAULT
const gzUInt8 CTX_USE_DEFAULT_VALUE
const gzUInt32 CTX_UNDEFINED_INDEX