From 9d35014c6e8055f78909ec8835753e7c1dffdfa6 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Tue, 1 Jan 2019 18:41:40 +0100 Subject: [PATCH] [tensor] use new member names --- src/ai/tensor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ai/tensor.c b/src/ai/tensor.c index d4c5b8a3..57044db1 100644 --- a/src/ai/tensor.c +++ b/src/ai/tensor.c @@ -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; } -- 2.11.0