CLS token
Author: harrygcoppockCreated Dec 20, 2022Updated Feb 3, 2025
Thank you for the great paper and code repo, super nice idea.
You mention in the paper that you experiment with appending a CLS token and using this to perform classification. I was wondering how you treat this CLS token - does it attend to all patches or just just the patches which fall into its local area (in the swin self attention process)? I also cannot find where this is implemented in code as this would be helpful.
Many thanks, Harry
Source: microsoft/Swin-Transformer