Adaptive Dimension Reduction and Variational Inference for Transductive Few-Shot Classification