CoOp
CoOp copied to clipboard
About PromptLearner
Hi, thanks for this great works! When reading the source code of CoOp,I have an question about 'token_prefix' and 'token_suffix' in PromptLearner class. How to under this two variables?
Why embedding[:, :1, :] could represent SOS and embedding[:, 1:1+n_ctx, : ] could represent CLS, EOS? I would appreciate it if anyone could help me.