ucb-bar / gemmini-rocc-tests

Fork of seldridge/rocket-rocc-examples with tests for a systolic array based matmul accelerator
Other
53 stars 39 forks source link

alexnet_params.h not found #29

Open k0nze opened 1 year ago

k0nze commented 1 year ago

In the imagenet directory is a alexnet.c which I would like to compile. However, the ? alexnet_params.h and alexnet_images.h are missing from that directory, and due to that, the compilation of AlexNet fails. Is it possible to get the header files for AlexNet?

hngenc commented 1 year ago

We generated one internally a long time ago, but we didn't end up pushing it because it was pretty large. I've taken a look, and I can't find it anymore. If I end up finding the file later, I'll update you.

In the meantime, if you want to run alexnet.c, you could ust images.h instead of alexnet_images.h, and perhaps generate dummy parameters for all the layers that are referenced in alexnet.c? The inferences will be incorrect of course, but the performance numbers should be identical.

HyunseokErikJung commented 1 year ago

If you were to port a trained model parameters to work in RoCC/Gemmini, what steps would it take to do the necessary quantizations? Been looking around all available resources but couldn't get a solid answer for this.

mbelda commented 1 year ago

@k0nze Did you managed to generate the dummy parameters for alexnet? I am also interested in executing it.

k0nze commented 1 year ago

@mbelda No, I haven't I might have a look in the coming weeks.