Changeset 5010e61 for src/ai/tensor.h
- Timestamp:
- Jan 1, 2019, 6:38:05 PM (6 years ago)
- Branches:
- feature/cnn_org, feature/crepe_org
- Children:
- 6e4ef27
- Parents:
- d0ef4b7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ai/tensor.h
rd0ef4b7 r5010e61 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.