Changeset 5154024


Ignore:
Timestamp:
Jan 10, 2019, 7:12:03 PM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/crepe_org
Children:
1bba23e
Parents:
f392b88
Message:

[dense] remove activation function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ai/dense.c

    rf392b88 r5154024  
    107107  // add bias
    108108  fvec_vecadd(&output_vec, c->bias);
    109 
    110   // compute sigmoid
    111   uint_t i;
    112   for (i = 0; i < output_vec.length; i++) {
    113     output_vec.data[i] = 1. / (1. + EXP( - output_vec.data[i] ));
    114   }
    115109}
Note: See TracChangeset for help on using the changeset viewer.