5 #include "ActivationTypes.h"
33 Conv2DTransposeWithBias,
37 SMARTENGINE_ENUM_STRING(
Conv2DType,
"Conv2D",
"Conv2DWithBias",
"Conv2DTranspose",
"Conv2DTransposeWithBias");
161 SMARTENGINE_EXPORT ObjPtr Conv2DLayer_CreateInstance(
const Conv2DLayerCInfo& cinfo);
162 SMARTENGINE_EXPORT ObjPtr Conv2DLayer_InstanceLayer(ObjPtr
object,
const char* name, ObjPtr input);
163 SMARTENGINE_EXPORT
void Conv2DLayer_SetRandomWeights(ObjPtr
object);
A logical node in the AI graph. Some nodes, like NeuralNetwork, are composed of other nodes (neuron l...
Definition: GraphNode.h:34
int inputWidth
Input width. If the previous layer is a Conv2D layer, you can set this to -1 to have it auto-calculat...
Definition: Conv2D.h:45
Conv2DType
Definition: Conv2D.h:14
Base class for objects that can be loaded from and saved to an in memory buffer.
Definition: Resource.h:54
Data used to construct an IGraphNode instance
Definition: GraphNode.h:17
Conv2DInfo info
General convolution info.
Definition: Conv2D.h:118
float weightStandardDeviation
The standard deviation to use when randomizing the filter weights.
Definition: Conv2D.h:123
int outputChannels
Number of output channels this convolution should produce. This is also the same as the number of fil...
Definition: Conv2D.h:85
Conv2DType type
The type of convolution to apply.
Definition: Conv2D.h:103
Smart pointer to an IObject. Automatic ref counting.
Definition: ObjectPtr.h:16
Definition: A2CTrainer.h:10
int filterWidth
The width of the filters applied.
Definition: Conv2D.h:62
int strideHeight
The stride height of the convolution. The filter is moved over this many elements every convolution.
Definition: Conv2D.h:79
@ Conv2D
2D Convolution layer, no bias
2D convolution layer. Input is interpreted as a 2D grid laid in row major order. Filters are applied ...
Definition: Conv2D.h:134
ActivationType
The activation function to apply to the output of the NeuronLayer
Definition: ActivationTypes.h:14
int strideWidth
The stride width of the convolution. The filter is moved over this many elements every convolution.
Definition: Conv2D.h:73
int inputHeight
Input height. If the previous layer is a Conv2D layer, you can set this to -1 to have it auto-calcula...
Definition: Conv2D.h:51
Conv2D layer constructor info
Definition: Conv2D.h:99
virtual void SetRandomWeights()=0
Initialize the filters of the layer to random values.
IGraphNode * input
The input into this convolution.
Definition: Conv2D.h:113
SMARTENGINE_EXPORT ObjectPtr< IConv2DLayer > CreateConv2DLayer(const Conv2DLayerCInfo &cinfo)
Creates an instance of IConv2DLayer
int inputChannels
Number of input channels. If the previous layer is a Conv2D layer, you can set this to -1 to have it ...
Definition: Conv2D.h:57
int filterHeight
The height of the filters applies. Set this to 1 if using Conv2D as a Conv1D
Definition: Conv2D.h:67
bool operator==(const Conv2DInfo &rhs)
Definition: Conv2D.h:87
ActivationType activationType
The activation to apply on the layer.
Definition: Conv2D.h:108