- Timestamp:
- Jan 1, 2019, 6:39:56 PM (6 years ago)
- Branches:
- feature/cnn_org, feature/crepe_org
- Children:
- 9d35014
- Parents:
- 6e4ef27
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ai/maxpool1d.c
r6e4ef27 r60c9db0 60 60 AUBIO_DBG("maxpool1d: input (%d, %d) ¤ maxpool1d (pool_size = (%d)) ->" 61 61 " (%d, %d) (no params)\n", 62 input_tensor-> dims[0],63 input_tensor-> dims[1],62 input_tensor->shape[0], 63 input_tensor->shape[1], 64 64 c->pool_size, 65 input_tensor-> dims[0] / c->pool_size,66 input_tensor-> dims[1]);65 input_tensor->shape[0] / c->pool_size, 66 input_tensor->shape[1]); 67 67 } 68 68 … … 73 73 AUBIO_ASSERT(shape && sizeof(shape) == 2*sizeof(uint_t)); 74 74 AUBIO_ASSERT(input); 75 shape[0] = input-> dims[0] / c->pool_size;76 shape[1] = input-> dims[1];75 shape[0] = input->shape[0] / c->pool_size; 76 shape[1] = input->shape[1]; 77 77 78 78 aubio_maxpool1d_debug(c, input); … … 87 87 AUBIO_ASSERT(c && input_tensor && output_tensor); 88 88 89 for (j = 0; j < output_tensor->dims[1]; j++) { 90 for (i = 0; i < output_tensor->dims[0]; i++) { 89 //aubio_maxpool1d_debug(c, input_tensor); 90 91 for (j = 0; j < output_tensor->shape[1]; j++) { 92 for (i = 0; i < output_tensor->shape[0]; i++) { 91 93 smpl_t m = -FLT_MAX; 92 94 for (a = 0; a < c->pool_size; a++) {
Note: See TracChangeset
for help on using the changeset viewer.