Changeset 59162ae


Ignore:
Timestamp:
Jan 16, 2019, 11:48:55 PM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/crepe_org
Children:
a524de1
Parents:
c32d8b2
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ai/conv2d.c

    rc32d8b2 r59162ae  
    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.