projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8359052
)
[tensor] always use buffer in tensor_as_fvec
author
Paul Brossier
<piem@piem.org>
Mon, 7 Jan 2019 21:14:13 +0000
(22:14 +0100)
committer
Paul Brossier
<piem@piem.org>
Wed, 29 Dec 2021 16:51:47 +0000
(11:51 -0500)
src/ai/tensor.c
patch
|
blob
|
history
diff --git
a/src/ai/tensor.c
b/src/ai/tensor.c
index
b9a7d77
..
7486a75
100644
(file)
--- 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;
}