Changeset 3837125 for src


Ignore:
Timestamp:
Dec 29, 2021, 5:51:59 PM (2 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/crepe
Children:
71b6437
Parents:
7ba59f1
git-author:
Paul Brossier <piem@piem.org> (01/16/19 23:48:55)
git-committer:
Paul Brossier <piem@piem.org> (12/29/21 17:51:59)
Message:

[conv2d] simplify padding modes enum, use _t suffix for type

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ai/conv2d.c

    r7ba59f1 r3837125  
    2727typedef enum
    2828{
    29   PAD_SAME = 0, // TODO
    30   PAD_VALID = 1,
    31   //PAD_CAUSAL = 2, // TODO (1d only, for dilated convolution)
    32 } aubio_conv2d_padding_type;
     29  PAD_SAME = 0,   // same, aka half mode
     30  PAD_VALID = 1   // valid, aka no padding
     31} aubio_conv2d_padding_t;
    3332
    3433struct _aubio_conv2d_t {
     
    3837  uint_t stride_shape[2];     // stride sizes
    3938
    40   aubio_conv2d_padding_type padding_mode;
     39  aubio_conv2d_padding_t padding_mode;
    4140
    4241  // these will be set after calling get_output_shape
Note: See TracChangeset for help on using the changeset viewer.