Add XPU to --torch-backend (#14172)

## Summary

Like ROCm, no auto-detection for now.
This commit is contained in:
Charlie Marsh 2025-06-20 20:33:20 -04:00 committed by GitHub
parent 0133bcc8ca
commit e59835d50c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 27 additions and 0 deletions

View file

@ -86,4 +86,10 @@ mod tests {
let url = DisplaySafeUrl::parse("https://download.pytorch.org/whl/cpu").unwrap();
assert_eq!(SystemDependency::from_index(&url), None);
}
#[test]
fn pytorch_xpu() {
let url = DisplaySafeUrl::parse("https://download.pytorch.org/whl/xpu").unwrap();
assert_eq!(SystemDependency::from_index(&url), None);
}
}