@Tizian_Th
The output of the Dino model is a [1,384] tensor, so if you want to connect two sequential layers, the output of the previous should have the same dimension as the input of the next. If you substitute
linear_classifier = LinearClassifier(384, 1000)

It should work