Unverified Commit 03c14a51 authored by NielsRogge's avatar NielsRogge Committed by GitHub
Browse files

[Tests] Fix DiT test (#16218)



* Fix device

* Clean up
Co-authored-by: default avatarNiels Rogge <nielsrogge@Nielss-MacBook-Pro.local>
parent 73f0a5d1
......@@ -43,7 +43,7 @@ class DiTIntegrationTest(unittest.TestCase):
image = dataset["train"][0]["image"].convert("RGB")
inputs = feature_extractor(image, return_tensors="pt")
inputs = feature_extractor(image, return_tensors="pt").to(torch_device)
# forward pass
with torch.no_grad():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment