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

@@ -13,7 +13,7 @@ namespace CUDANet::Layers {
* @brief 2D convolutional layer
*
*/
class Conv2d : public WeightedLayer {
class Conv2d : public WeightedLayer, public TwoDLayer {
public:
/**
* @brief Construct a new Conv 2d layer
@@ -102,6 +102,8 @@ class Conv2d : public WeightedLayer {
return paddingSize;
}
dim2d getOutputDims();
private:
// Inputs
dim2d inputSize;