Dimension Mixer: A Generalized Method for Structured Sparsity in Deep Neural Networks