Skip to content

Commit

Permalink
Update anomaly_detection_pytorch.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kashif authored Nov 5, 2024
1 parent 8b10b66 commit d70e1ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/anomaly_detection_pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def main(args):

anomalies = []
means = []
model.eval()
model.cpu().eval()
with torch.no_grad():
for batch in tqdm(test_data_loader, desc="Processing batches"):
inputs = select(
Expand Down

0 comments on commit d70e1ed

Please sign in to comment.