Changeset b508ba6 for src/ai/tensor.h
- Timestamp:
- Dec 29, 2021, 5:51:45 PM (3 years ago)
- Branches:
- feature/cnn, feature/crepe
- Children:
- f4c5a95
- Parents:
- e181d64
- git-author:
- Paul Brossier <piem@piem.org> (01/01/19 18:38:05)
- git-committer:
- Paul Brossier <piem@piem.org> (12/29/21 17:51:45)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ai/tensor.h
re181d64 rb508ba6 27 27 28 28 typedef struct { 29 uint_t n _dims;30 uint_t dims[8];29 uint_t ndim; 30 uint_t shape[8]; 31 31 smpl_t **data; 32 32 uint_t n_items; … … 34 34 } aubio_tensor_t; 35 35 36 aubio_tensor_t *new_aubio_tensor(uint_t n _dims, uint_t *dims);36 aubio_tensor_t *new_aubio_tensor(uint_t ndim, uint_t *shape); 37 37 38 38 void del_aubio_tensor(aubio_tensor_t *c); … … 48 48 #define AUBIO_ASSERT_EQUAL_SHAPE(t1, t2) { \ 49 49 AUBIO_ASSERT(t1 && t2); \ 50 AUBIO_ASSERT(t1->n _dims == t2->n_dims); \50 AUBIO_ASSERT(t1->ndim == t2->ndim); \ 51 51 uint_t nn; \ 52 for (nn = 0; nn < t1->n _dims; nn++) \53 AUBIO_ASSERT(t1-> dims[nn] == t2->dims[nn]); \52 for (nn = 0; nn < t1->ndim; nn++) \ 53 AUBIO_ASSERT(t1->shape[nn] == t2->shape[nn]); \ 54 54 } 55 55
Note: See TracChangeset
for help on using the changeset viewer.