Hi, ptrblck,
I tried to incorporate that logic into my work, however, in my case, the dimension of features is the Batch size(128),2,128 instead of 4 (as mentioned in your example). I think due to this it is causing problems. Could you please have a look at the code and corresponding output as shown in the following pics
Code Snippet
image858×867 33.7 KB
Output
image1036×236 8.27 KB