mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 12:24:53 +00:00
Clippy.
This commit is contained in:
parent
a7a98c0253
commit
6ff36feac9
@ -988,8 +988,8 @@ fn compute_type(num_shard: usize) -> Option<String> {
|
|||||||
.output()
|
.output()
|
||||||
.ok()?;
|
.ok()?;
|
||||||
let output = String::from_utf8(output.stdout).ok()?;
|
let output = String::from_utf8(output.stdout).ok()?;
|
||||||
let fullname = output.split("\n").nth(1)?;
|
let fullname = output.split('\n').nth(1)?;
|
||||||
let cardname = fullname.replace(" ", "-").to_lowercase();
|
let cardname = fullname.replace(' ', "-").to_lowercase();
|
||||||
let compute_type = format!("{num_shard}-{cardname}");
|
let compute_type = format!("{num_shard}-{cardname}");
|
||||||
Some(compute_type)
|
Some(compute_type)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user