Understanding Generalization in Deep Learning via Tensor Methods