AdaPrompt: Adaptive Model Training for Prompt-based NLP