Changeset a85c7f3 for src


Ignore:
Timestamp:
Jan 2, 2019, 10:54:55 PM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/cnn_org, feature/crepe_org
Children:
9bffada
Parents:
427a48c
Message:

[tensor] set initial max value to first element

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ai/tensor.c

    r427a48c ra85c7f3  
    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.