Time Series Anomaly Detection Pytorch