Anomaly Detection Based on Critical Paths for Deep Neural Networks