Changeset 72d4e42


Ignore:
Timestamp:
Dec 29, 2021, 5:51:57 PM (3 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/crepe
Children:
8f99431
Parents:
1f7cb6a
git-author:
Paul Brossier <piem@piem.org> (01/10/19 19:11:28)
git-committer:
Paul Brossier <piem@piem.org> (12/29/21 17:51:57)
Message:

[conv1d] remove activation function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ai/conv1d.c

    r1f7cb6a r72d4e42  
    264264      // apply bias
    265265      acc += bias;
    266       // compute RELU
    267       activations->data[j][i] = MAX(acc, 0);
    268266    }
    269267  }
     
    316314    for (i = 0; i < activations->shape[1]; i++) {
    317315      activations->data[j][i] += c->bias->data[i];
    318       activations->data[j][i] = MAX(activations->data[j][i], 0);
    319316    }
    320317  }
Note: See TracChangeset for help on using the changeset viewer.