Persistent Homology Captures the Generalization of Neural Networks Without A Validation Set