mirror of
https://github.com/huggingface/candle.git
synced 2025-06-18 03:28:50 +00:00
Clippy fix. (#830)
This commit is contained in:
@ -417,7 +417,6 @@ impl T5Stack {
|
|||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct T5EncoderModel {
|
pub struct T5EncoderModel {
|
||||||
shared: Arc<Embedding>,
|
|
||||||
encoder: T5Stack,
|
encoder: T5Stack,
|
||||||
pub device: Device,
|
pub device: Device,
|
||||||
}
|
}
|
||||||
@ -428,7 +427,6 @@ impl T5EncoderModel {
|
|||||||
let shared = Arc::new(shared);
|
let shared = Arc::new(shared);
|
||||||
let encoder = T5Stack::load(vb.pp("encoder"), &shared, cfg)?;
|
let encoder = T5Stack::load(vb.pp("encoder"), &shared, cfg)?;
|
||||||
Ok(Self {
|
Ok(Self {
|
||||||
shared,
|
|
||||||
encoder,
|
encoder,
|
||||||
device: vb.device().clone(),
|
device: vb.device().clone(),
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user