mirror of
https://github.com/huggingface/candle.git
synced 2025-06-16 18:48:51 +00:00
Clippy fix. (#1972)
This commit is contained in:
@ -79,7 +79,7 @@ impl TextGeneration {
|
|||||||
} else {
|
} else {
|
||||||
self.model
|
self.model
|
||||||
.text_model
|
.text_model
|
||||||
.forward_with_img(&input, &image_embeds)?
|
.forward_with_img(&input, image_embeds)?
|
||||||
};
|
};
|
||||||
let logits = logits.squeeze(0)?.to_dtype(DType::F32)?;
|
let logits = logits.squeeze(0)?.to_dtype(DType::F32)?;
|
||||||
let logits = if self.repeat_penalty == 1. {
|
let logits = if self.repeat_penalty == 1. {
|
||||||
|
Reference in New Issue
Block a user