Continual Learning in the Teacher-Student Setup: Impact of Task Similarity