Methodforward Args: x: input features with shape of (num_windows*B, N, C) mask: (0/-inf) mask with shape of (num_windows, Wh*Ww, Wh
examples/pytorch/swin/Swin-Transformer-Quantization/models/swin_transformer_v2.py:165
Methodforward(self, beam_width, max_seq_len, top_k, top_p,
beam_search_diversity_rate, temperature,
examples/pytorch/t5/utils/ft_decoding.py:471