Dynamic Sparsity for Efficient Machine Learning