Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
echarlaix committed Oct 9, 2023
1 parent 58cdf03 commit 3d0ac04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimum/onnxruntime/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ def compute_past_key_values_output_shapes(
) -> Dict[str, int]:
batch_size = input_ids.size(0)
num_attention_heads = self.normalized_config.num_attention_heads
embed_size_per_head = self.normalized_config.hidden_size // self.normalized_config.num_attention_heads
embed_size_per_head = self.normalized_config.hidden_size // num_attention_heads

sequence_length = input_ids.size(1)
encoder_sequence_length = encoder_hidden_states.size(1)
Expand Down

0 comments on commit 3d0ac04

Please sign in to comment.