| OLD | NEW |
| 1 /* Copyright (c) 2008-2011 Octasic Inc. | 1 /* Copyright (c) 2008-2011 Octasic Inc. |
| 2 Written by Jean-Marc Valin */ | 2 Written by Jean-Marc Valin */ |
| 3 /* | 3 /* |
| 4 Redistribution and use in source and binary forms, with or without | 4 Redistribution and use in source and binary forms, with or without |
| 5 modification, are permitted provided that the following conditions | 5 modification, are permitted provided that the following conditions |
| 6 are met: | 6 are met: |
| 7 | 7 |
| 8 - Redistributions of source code must retain the above copyright | 8 - Redistributions of source code must retain the above copyright |
| 9 notice, this list of conditions and the following disclaimer. | 9 notice, this list of conditions and the following disclaimer. |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | 24 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
| 25 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 #ifndef _MLP_H_ | 28 #ifndef _MLP_H_ |
| 29 #define _MLP_H_ | 29 #define _MLP_H_ |
| 30 | 30 |
| 31 #include "arch.h" | 31 #include "arch.h" |
| 32 | 32 |
| 33 typedef struct { | 33 typedef struct { |
| 34 » int layers; | 34 int layers; |
| 35 » const int *topo; | 35 const int *topo; |
| 36 » const float *weights; | 36 const float *weights; |
| 37 } MLP; | 37 } MLP; |
| 38 | 38 |
| 39 void mlp_process(const MLP *m, const float *in, float *out); | 39 void mlp_process(const MLP *m, const float *in, float *out); |
| 40 | 40 |
| 41 #endif /* _MLP_H_ */ | 41 #endif /* _MLP_H_ */ |
| OLD | NEW |