Changeset f392b88
- Timestamp:
- Jan 10, 2019, 7:11:28 PM (6 years ago)
- Branches:
- feature/crepe_org
- Children:
- 5154024
- Parents:
- 977a5c3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ai/conv1d.c
r977a5c3 rf392b88 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.