Changeset c5ca86e


Ignore:
Timestamp:
Dec 29, 2021, 5:52:04 PM (3 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/crepe
Children:
1bc92cd
Parents:
2117311
git-author:
Paul Brossier <piem@piem.org> (12/29/21 17:24:22)
git-committer:
Paul Brossier <piem@piem.org> (12/29/21 17:52:04)
Message:

[tests] fix tensor shape checks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/src/ai/test-tensor.c

    r2117311 rc5ca86e  
    181181  PRINT_MSG(" getting subtensor 1\n");
    182182  assert (aubio_tensor_get_subtensor(t, 1, &st) == 0);
    183   assert (st.ndim = ndim - 1);
     183  assert (st.ndim == ndim - 1);
    184184  assert (st.shape[0] == d2);
    185185  assert (st.shape[1] == d3);
     
    198198  PRINT_MSG(" check subtensor 1 of subtensor 3\n");
    199199  assert (aubio_tensor_get_subtensor(&st, 1, &sst) == 0);
    200   assert (sst.ndim = ndim - 2);
     200  assert (sst.ndim == ndim - 2);
    201201  assert (sst.shape[0] == d3);
    202202  assert (sst.shape[1] == 0);
Note: See TracChangeset for help on using the changeset viewer.