Changeset 72d4e42
- Timestamp:
- Dec 29, 2021, 5:51:57 PM (3 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ai/conv1d.c
r1f7cb6a r72d4e42 264 264 // apply bias 265 265 acc += bias; 266 // compute RELU267 activations->data[j][i] = MAX(acc, 0);268 266 } 269 267 } … … 316 314 for (i = 0; i < activations->shape[1]; i++) { 317 315 activations->data[j][i] += c->bias->data[i]; 318 activations->data[j][i] = MAX(activations->data[j][i], 0);319 316 } 320 317 }
Note: See TracChangeset
for help on using the changeset viewer.