[tensor] use new member names
authorPaul Brossier <piem@piem.org>
Tue, 1 Jan 2019 17:41:40 +0000 (18:41 +0100)
committerPaul Brossier <piem@piem.org>
Tue, 1 Jan 2019 17:41:40 +0000 (18:41 +0100)
src/ai/tensor.c

index d4c5b8a..57044db 100644 (file)
@@ -77,9 +77,9 @@ uint_t aubio_tensor_as_fmat(aubio_tensor_t *c, fmat_t *o) {
 uint_t aubio_fmat_as_tensor(fmat_t *o, aubio_tensor_t *c) {
   if (o == NULL) return AUBIO_FAIL;
   if (c == NULL) return AUBIO_FAIL;
-  c->n_dims = 2;
-  c->dims[0] = o->height;
-  c->dims[1] = o->length;
+  c->ndim = 2;
+  c->shape[0] = o->height;
+  c->shape[1] = o->length;
   c->data = o->data;
   return AUBIO_OK;
 }