Exploiting and coping with sparsity to accelerate DNNs on CPUs