Channel-wise softmax in NCHW format support
Hi, As per this raised issue #401
In CUDNN and MKLDNN, they are doing the channel wise softmax when the inputs and outputs are of the form NCHW. For my Query, Our Input has 3 channels , Height and width 32 and 32 respectively.They are implemeting like exp(1st)/(exp(1st)+exp(1025th)+exp(2049th)) elements. But I was unable to reproduce the same in our ARM Compute Library. Here we are getting exp(1st)/(sum of exp(all 3072)) elements. Is there a way to execute the softmax layer similar to mkldnn and cudnn in ARM COMPUTE LIBRARY
We have marked this work as a feature request and will prioritize accordingly. For now you can do the above by performing a permute->softmax->permute which is not the most efficient solution.
Hi @GeorgeARM
Can you please elaborate how permute->softmax->permute will perform softmax classifier in channelwise ?
Hello @nhkrishna,
I suppose the request above is channel-wise softmax in NCHW format tensor. But ACL supports softmax on the width axis only. So I suppose if you permute your input to NHWC and then do softmax and then permute back to NCHW you will have the result that you want.
Thanks for your reply @GeorgeARM I will try it and get back to you.
Have you tried @nhkrishna in the end?
Yes i have tried using permute->softmax->permute. It works as required.