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