From: Paul Brossier Date: Tue, 1 Jan 2019 17:41:40 +0000 (+0100) Subject: [tensor] use new member names X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=6ad67a5783a00b75d776fec0057a61a19edd8aad;p=aubio.git [tensor] use new member names --- 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; }