From: Paul Brossier Date: Mon, 7 Jan 2019 21:14:13 +0000 (+0100) Subject: [tensor] always use buffer in tensor_as_fvec X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=83ef8f05711c494a6730fc7ff47310f68061e4cd;p=aubio.git [tensor] always use buffer in tensor_as_fvec --- diff --git a/src/ai/tensor.c b/src/ai/tensor.c index b9a7d77a..7486a75a 100644 --- a/src/ai/tensor.c +++ b/src/ai/tensor.c @@ -74,7 +74,7 @@ void del_aubio_tensor(aubio_tensor_t *c) uint_t aubio_tensor_as_fvec(aubio_tensor_t *c, fvec_t *o) { if (!c || !o) return AUBIO_FAIL; o->length = c->size; - o->data = c->data[0]; + o->data = c->buffer; return AUBIO_OK; }