Exploring normalizing flow for anomaly detection