pppLang/SKNet

The Global Average Pooling

jianjiandandande opened this issue · 2 comments

SKNet/sknet.py

Line 45 in ef76d8d

# fea_s = self.gap(fea_U).squeeze_()

SKNet/sknet.py

Line 46 in ef76d8d

fea_s = fea_U.mean(-1).mean(-1)

Does the code use mean instead of GAP? Is the performance obvious?

@jianjiandandande Hello, I have the same question, do you have an answer?

To avoid error when batchsize = 1