Changeset 8db0930


Ignore:
Timestamp:
Dec 29, 2021, 5:51:58 PM (3 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/crepe
Children:
49ac607f
Parents:
abb75ec
git-author:
Paul Brossier <piem@piem.org> (01/10/19 19:14:31)
git-committer:
Paul Brossier <piem@piem.org> (12/29/21 17:51:58)
Message:

[pitch_crepe] add activations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/pitch/pitch_crepe.c

    rabb75ec r8db0930  
    3737#include "fmat.h"
    3838#include "ai/tensor.h"
     39#include "ai/activation.h"
    3940#include "ai/conv1d.h"
    4041#include "ai/maxpool1d.h"
     
    319320    aubio_conv1d_do(o->conv_layers[i], block_input,
    320321        o->conv_output[i]);
     322    // relu activation
     323    aubio_activation_relu(o->conv_output[i]);
    321324    aubio_batchnorm_do(o->batchnorm_layers[i], o->conv_output[i],
    322325        o->batchnorm_output[i]);
     
    335338  // compute dense layer
    336339  aubio_dense_do(o->dense_layer, o->flattened, o->dense_output);
     340
     341  // sigmoid activation
     342  aubio_activation_sigmoid(o->dense_output);
    337343
    338344#if 0
Note: See TracChangeset for help on using the changeset viewer.