Changeset d6fdff6 for src


Ignore:
Timestamp:
Dec 29, 2021, 5:52:02 PM (3 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/crepe
Children:
556cadb
Parents:
8e1e753
git-author:
Paul Brossier <piem@piem.org> (01/29/19 03:14:39)
git-committer:
Paul Brossier <piem@piem.org> (12/29/21 17:52:02)
Message:

[tensor] have_same_shape returns false on null pointers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ai/tensor.c

    r8e1e753 rd6fdff6  
    141141{
    142142  uint_t n;
    143   AUBIO_ASSERT(a && b);
    144   if (a->ndim != b->ndim) {
     143  if (!a || !b)
    145144    return 0;
    146   }
     145  if (a->ndim != b->ndim)
     146    return 0;
     147
    147148  for (n = 0; n < a->ndim; n++) {
    148149    if (a->shape[n] != b->shape[n]) {
Note: See TracChangeset for help on using the changeset viewer.