update readme and fmt

This commit is contained in:
jhqxxx
2025-11-13 01:03:52 +08:00
parent b5cfcb4684
commit 4e7573e4ff
6 changed files with 24 additions and 17 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ pub fn get_device(device: Option<&Device>) -> Device {
None => {
#[cfg(feature = "cuda")]
{
Device::new_cuda(6).unwrap_or(Device::Cpu)
Device::new_cuda(0).unwrap_or(Device::Cpu)
}
#[cfg(not(feature = "cuda"))]
{