I find this code can only handle the input whose dimension is 2.
in the paper of Berkeley, they use cbp layer to do attention, the input become 2048_14_14 or 2048_196, if the batchsize is 20, the input of cbp layer will become 20_2048_196 and the input dimension will become 3.
I find assert(false, '# of dimensions > 2') in CompactBilinearPooling.lua.
how to modify the code if the dimemsion of input is 3 or more ?
I find this code can only handle the input whose dimension is 2. in the paper of Berkeley, they use cbp layer to do attention, the input become 2048_14_14 or 2048_196, if the batchsize is 20, the input of cbp layer will become 20_2048_196 and the input dimension will become 3.
I find assert(false, '# of dimensions > 2') in CompactBilinearPooling.lua. how to modify the code if the dimemsion of input is 3 or more ?