Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Here is a guy who worked it out:

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.



Thanks, 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.


The 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.


Awesome. Send me email any time and I will assist you.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: