Variational Characterizations of Local Entropy and Heat Regularization in Deep Learning