Changeset 533187f for src


Ignore:
Timestamp:
Dec 29, 2021, 5:51:46 PM (2 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/cnn, feature/crepe
Children:
a5986ff
Parents:
0d9ef90
git-author:
Paul Brossier <piem@piem.org> (01/02/19 22:54:55)
git-committer:
Paul Brossier <piem@piem.org> (12/29/21 17:51:46)
Message:

[tensor] set initial max value to first element

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ai/tensor.c

    r0d9ef90 r533187f  
    8484{
    8585  uint_t i;
    86   smpl_t max = -1000000;
     86  smpl_t max = t->buffer[0];
    8787  for (i = 0; i < t->size; i++) {
    88     max = MAX(t->data[0][i], max);
     88    max = MAX(t->buffer[i], max);
    8989  }
    9090  return max;
Note: See TracChangeset for help on using the changeset viewer.