projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97985d4
)
[tensor] use new member names
author
Paul Brossier
<piem@piem.org>
Tue, 1 Jan 2019 17:41:40 +0000
(18:41 +0100)
committer
Paul Brossier
<piem@piem.org>
Wed, 29 Dec 2021 16:51:45 +0000
(11:51 -0500)
src/ai/tensor.c
patch
|
blob
|
history
diff --git
a/src/ai/tensor.c
b/src/ai/tensor.c
index
d4c5b8a
..
57044db
100644
(file)
--- 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->n
dim
= 2;
+ c->
shape
[0] = o->height;
+ c->
shape
[1] = o->length;
c->data = o->data;
return AUBIO_OK;
}