Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define ALLOC(NAME, TYPE, N) if(NAME) free(NAME); NAME = (TYPE *)calloc(N, sizeof(TYPE)); assert(NAME);
- ALLOC( outputActivation, float, dims->numOutputNeurons );
- #undef ALLOC
Advertisement
Add Comment
Please, Sign In to add comment