Faster GEMM for Convolution & Fully Connected Layers.
Output of 'strings libarm_compute.so | grep arm_compute_version':
Platform: arm64-v8a
Operating System: Android 9.0 Pie
Problem description: Any pointers for making the GEMM faster for Convolution & Fully Connected Layers? Tuning the kernels or ideas for new kernels are appreciated. Already tried Winograd method, it is giving similar inference times.
Any leads are highly appreciated. Thanks.
Hi @ssj4gogeta,
what platform are you working on? and what processor are you targeting? CPU? GPU? both?
Given these information we should be able to share help you on this request.
Many thanks.
Hello @gmiodice,
I am working on arm64, G76 Mali GPU.
Thank you.
@ssj4gogeta It's also important to know what kind of model are you using, i.e. can you share any representative tensor shapes?
Any leads are highly appreciated.
In our experience, you shouldn't also dismiss the direct convolution approach. Earlier this year, we demonstrated that it can be faster than the GEMM-based approach, when using the original NCHW layout. Then the Compute Library introduced the NHWC layout, which gave GEMM-based convolution a cool performance boost. Unfortunately, we haven't had time to update our kernel to the new NHWC layout, but it should similarly benefit direct convolution.
Take a look at our MobileNets dashboard for MLPerf Inference, where you see some sample data for ArmCL v18.08 on Mali-G71. You can customize the overlay dimension to the check the method, layout and tuner dimensions for each point.
Closing for inactivity, feel free to reopen otherwise