Changeset 9b05ea9 for src/ai


Ignore:
Timestamp:
Dec 29, 2021, 5:51:59 PM (3 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/crepe
Children:
72f450a
Parents:
05808d5
git-author:
Paul Brossier <piem@piem.org> (01/18/19 00:28:29)
git-committer:
Paul Brossier <piem@piem.org> (12/29/21 17:51:59)
Message:

[batchnorm] wrap long lines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ai/batchnorm.c

    r05808d5 r9b05ea9  
    131131uint_t aubio_batchnorm_set_beta(aubio_batchnorm_t *t, fvec_t *beta)
    132132{
    133   AUBIO_ASSERT(t && t->beta);
    134   AUBIO_ASSERT(beta);
    135   if (t->beta->length != beta->length) return AUBIO_FAIL;
     133  AUBIO_ASSERT(t && t->beta && beta);
     134  if (t->beta->length != beta->length)
     135    return AUBIO_FAIL;
    136136  fvec_copy(beta, t->beta);
    137137  return AUBIO_OK;
    138138}
    139139
    140 uint_t aubio_batchnorm_set_moving_mean(aubio_batchnorm_t *t, fvec_t *moving_mean)
     140uint_t aubio_batchnorm_set_moving_mean(aubio_batchnorm_t *t,
     141    fvec_t *moving_mean)
    141142{
    142143  AUBIO_ASSERT(t && t->moving_mean);
    143144  AUBIO_ASSERT(moving_mean);
    144   if (t->moving_mean->length != moving_mean->length) return AUBIO_FAIL;
     145  if (t->moving_mean->length != moving_mean->length)
     146    return AUBIO_FAIL;
    145147  fvec_copy(moving_mean, t->moving_mean);
    146148  return AUBIO_OK;
    147149}
    148150
    149 uint_t aubio_batchnorm_set_moving_variance(aubio_batchnorm_t *t, fvec_t *moving_variance)
     151uint_t aubio_batchnorm_set_moving_variance(aubio_batchnorm_t *t,
     152    fvec_t *moving_variance)
    150153{
    151154  AUBIO_ASSERT(t && t->moving_variance);
    152155  AUBIO_ASSERT(moving_variance);
    153   if (t->moving_variance->length != moving_variance->length) return AUBIO_FAIL;
     156  if (t->moving_variance->length != moving_variance->length)
     157    return AUBIO_FAIL;
    154158  fvec_copy(moving_variance, t->moving_variance);
    155159  return AUBIO_OK;
Note: See TracChangeset for help on using the changeset viewer.