megvii-research / FQ-ViT

[IJCAI 2022] FQ-ViT: Post-Training Quantization for Fully Quantized Vision Transformer
Apache License 2.0
304 stars 47 forks source link

How to understand the concept of channel before layernorm? #44

Open wplf opened 1 year ago

wplf commented 1 year ago

The concept of channel-wise in Conv is quite intuitive. The concept of group-wise is easy to understand, too, which is based on the different attention head. But how to understand channel in tensor with shape [batch_size, num_seq, num_hidden] ?