summaryrefslogtreecommitdiff
path: root/candle-transformers/src/models/blip.rs
diff options
context:
space:
mode:
Diffstat (limited to 'candle-transformers/src/models/blip.rs')
-rw-r--r--candle-transformers/src/models/blip.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/candle-transformers/src/models/blip.rs b/candle-transformers/src/models/blip.rs
index 1b4f9008..daa96926 100644
--- a/candle-transformers/src/models/blip.rs
+++ b/candle-transformers/src/models/blip.rs
@@ -1,4 +1,3 @@
-#![allow(unused)]
use super::blip_text;
use super::with_tracing::{conv2d, linear, Conv2d, Linear};
use candle::{Module, Result, Tensor, D};
@@ -65,7 +64,6 @@ struct VisionEmbeddings {
class_embedding: Tensor,
patch_embedding: Conv2d,
position_embedding: Tensor,
- num_positions: usize,
}
impl VisionEmbeddings {
@@ -91,7 +89,6 @@ impl VisionEmbeddings {
class_embedding,
patch_embedding,
position_embedding,
- num_positions,
})
}
}
@@ -117,8 +114,6 @@ struct Attention {
qkv: Linear,
projection: Linear,
scale: f64,
- embed_dim: usize,
- head_dim: usize,
num_heads: usize,
}
@@ -134,8 +129,6 @@ impl Attention {
qkv,
projection,
scale,
- embed_dim,
- head_dim,
num_heads,
})
}