Add getOutputDims to 2d layers

This commit is contained in:
2024-05-26 14:28:43 +02:00
parent 78a0fd0baf
commit cba177e417
9 changed files with 37 additions and 4 deletions

View File

@@ -8,7 +8,7 @@
namespace CUDANet::Layers {
class BatchNorm2d : public WeightedLayer {
class BatchNorm2d : public WeightedLayer, public TwoDLayer {
public:
BatchNorm2d(dim2d inputSize, int inputChannels, float epsilon, ActivationType activationType);
@@ -64,6 +64,8 @@ class BatchNorm2d : public WeightedLayer {
*/
int getInputSize();
dim2d getOutputDims();
private:
dim2d inputSize;