From: Paul Brossier Date: Wed, 16 Jan 2019 22:48:55 +0000 (+0100) Subject: [conv2d] simplify padding modes enum, use _t suffix for type X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=59162ae18d750d47d00c112df202ce3de04b5882;p=aubio.git [conv2d] simplify padding modes enum, use _t suffix for type --- diff --git a/src/ai/conv2d.c b/src/ai/conv2d.c index e78b916d..0f1c1f15 100644 --- a/src/ai/conv2d.c +++ b/src/ai/conv2d.c @@ -26,10 +26,9 @@ typedef enum { - PAD_SAME = 0, // TODO - PAD_VALID = 1, - //PAD_CAUSAL = 2, // TODO (1d only, for dilated convolution) -} aubio_conv2d_padding_type; + PAD_SAME = 0, // same, aka half mode + PAD_VALID = 1 // valid, aka no padding +} aubio_conv2d_padding_t; struct _aubio_conv2d_t { // define internals here @@ -37,7 +36,7 @@ struct _aubio_conv2d_t { uint_t kernel_shape[2]; // kernel sizes uint_t stride_shape[2]; // stride sizes - aubio_conv2d_padding_type padding_mode; + aubio_conv2d_padding_t padding_mode; // these will be set after calling get_output_shape aubio_tensor_t *kernel;