Skip to content

Commit 6cd92ac

Browse files
committed
format
1 parent 920341a commit 6cd92ac

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

optimum/exporters/openvino/model_patcher.py

-1
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,6 @@ def _llama_gemma_update_causal_mask(self, attention_mask, input_tensor, cache_po
311311

312312
target_length = attention_mask.shape[-1] if isinstance(attention_mask, torch.Tensor) else current_length
313313

314-
315314
causal_mask = torch.full((sequence_length, target_length), fill_value=1, dtype=dtype, device=device) * min_dtype
316315
if sequence_length != 1:
317316
causal_mask = torch.triu(causal_mask, diagonal=1)

0 commit comments

Comments
 (0)