projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
977a5c3
)
[conv1d] remove activation function
author
Paul Brossier
<piem@piem.org>
Thu, 10 Jan 2019 18:11:28 +0000
(19:11 +0100)
committer
Paul Brossier
<piem@piem.org>
Thu, 10 Jan 2019 18:11:28 +0000
(19:11 +0100)
src/ai/conv1d.c
patch
|
blob
|
history
diff --git
a/src/ai/conv1d.c
b/src/ai/conv1d.c
index
474009e
..
dde2b95
100644
(file)
--- a/
src/ai/conv1d.c
+++ b/
src/ai/conv1d.c
@@
-263,8
+263,6
@@
void aubio_conv1d_do(aubio_conv1d_t *c, aubio_tensor_t *input_tensor,
stride_a += c->stride_shape;
// apply bias
acc += bias;
- // compute RELU
- activations->data[j][i] = MAX(acc, 0);
}
}
}
@@
-315,7
+313,6
@@
void aubio_conv1d_do(aubio_conv1d_t *c, aubio_tensor_t *input_tensor,
// for each kernel filter k
for (i = 0; i < activations->shape[1]; i++) {
activations->data[j][i] += c->bias->data[i];
- activations->data[j][i] = MAX(activations->data[j][i], 0);
}
}
}