Open RichardWarfield opened 8 years ago
You merged a bunch of foreign commits into your PR. You should be able to fix this by:
git fetch upstream
git reset --hard upstream/master
git cherry-pick 96b36ed
git push --force
(assuming you've got joschu/cgt added as a remote named "upstream")
Thanks... it should be fixed now.
Nice work -- I'll review it in the next day or two.
I implemented this functionality in order to be able to profile a function running on the C++ backend. Some notes on the implementation are in the commit message and usage should be the same as for the Python profiler, i.e. call cgt.profile.stop(), cgt.profile.start(), cgt.profile.print_stats().
Currently I have only implemented this on the sequential interpreter though it should be straightforward to make the parallel interpreter work as well.
To test this I made a few minor changes to the MNIST demo so the backend can be switched from the command line.
Examples:
Python backend (original functionality):
C++ CPU backend:
C++ GPU backend: