Update tests/conftest.py

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Signed-off-by: Chukwuma Nwaugha <20521315+nwaughachukwuma@users.noreply.github.com>
This commit is contained in:
Chukwuma Nwaugha 2025-12-11 18:41:08 +00:00 committed by GitHub
parent 95af481818
commit dc763bbbe7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -265,7 +265,7 @@ class HfRunner:
if isinstance(x, dict):
return {k: self.wrap_device(v, device) for k, v in x.items()}
if hasattr(x.device, "type") and x.device.type == device:
if hasattr(x, "device") and x.device.type == device:
return x
return x.to(device)