From 3837125cb88ea78206e4550b2d57aca07313d9ac Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Wed, 16 Jan 2019 23:48:55 +0100 Subject: [PATCH] [conv2d] simplify padding modes enum, use _t suffix for type --- src/ai/conv2d.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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; -- 2.11.0