Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wejoncy committed Oct 22, 2023
1 parent d7f9a40 commit 02e887b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ def fetch_onnx_inputs_outputs_name(
):
"""fetch onnx inputs and outputs name"""
num_of_past_key = 0
kv_cache_axis = {0: "batch_size"}
# try get num_of_past_key and shape of past_key_value
if past_key_values is not None:
num_of_past_key = len(past_key_values)
Expand Down

0 comments on commit 02e887b

Please sign in to comment.