2 ms·
Here is a guy who worked it out: https://github.com/jonatron/test_nn512 https://github.com/jonatron/test_nn512 That's a full ResNet50 conversion from the corr
by 37ef_ced3 5y ago
Here is a guy who worked it out:
https://github.com/jonatron/test_nn512 https://github.com/jonatron/test_nn512
That's a full ResNet50 conversion from the corresponding Caffe protobuf. He also wrote a small script to convert TensorFlow networks.
GCC warns about perfectly valid, correct C. It even warns about switch case fallthough. All of the generated code is fully correct. Turn the warnings off.
Please don't copy and paste from the website! Download the NN-512 executable and run it.
Email me if you still have difficulties.
- johndough 5y agoThanks, that code does indeed work! And it is significantly faster than PyTorch (15 vs 60 milliseconds). Maybe I will use it in the future if AVX512 should become more widespread.
- 37ef_ced3 5y agoAwesome. Send me email any time and I will assist you.
- 37ef_ced3 5y agoThe new NN-512 release (version 35) changes the build instructions to suppress GCC's warnings while building the generated code (-w switch): // To build an object file: // gcc -c -w -std=c99 -pthread -Ofast -mavx512f Example1.c Thanks for your feedback.