diff options
Diffstat (limited to 'candle-transformers')
-rw-r--r-- | candle-transformers/src/models/chinese_clip/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/candle-transformers/src/models/chinese_clip/mod.rs b/candle-transformers/src/models/chinese_clip/mod.rs index 88472f0b..0f6eedd0 100644 --- a/candle-transformers/src/models/chinese_clip/mod.rs +++ b/candle-transformers/src/models/chinese_clip/mod.rs @@ -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) } |