mirror of
https://github.com/huggingface/candle.git
synced 2025-06-15 18:28:24 +00:00
Add some missing index-select metal kernels. (#2613)
* Add some missing index-select metal kernels. * Make some matrix contiguous pre-matmul.
This commit is contained in:
@ -171,7 +171,8 @@ impl ChineseClipModel {
|
||||
) -> Result<Tensor> {
|
||||
let output = self
|
||||
.text_model
|
||||
.forward(input_ids, token_type_ids, attention_mask)?;
|
||||
.forward(input_ids, token_type_ids, attention_mask)?
|
||||
.contiguous()?;
|
||||
self.text_projection.forward(&output)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user