Skip to content

Commit f2ac838

Browse files
committed
mypy
1 parent f710c03 commit f2ac838

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOGS.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Change Logs
44
0.7.2
55
+++++
66

7+
* :pr:`166`: improves handling of StaticCache
78
* :pr:`165`: support for task text-to-image
89
* :pr:`162`: improves graphs rendering for historical data
910

onnx_diagnostic/tasks/text_generation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def get_inputs(
188188
(batch_size, num_key_value_heads, sequence_length2, head_dim)
189189
).to(torch.bool),
190190
cache_position=torch.arange(sequence_length2).to(torch.int64),
191-
past_key_values=make_cache(
191+
past_key_values=make_dynamic_cache(
192192
[
193193
(
194194
torch.randn(
@@ -237,7 +237,7 @@ def get_inputs(
237237
position_ids=torch.arange(sequence_length, sequence_length + sequence_length2)
238238
.to(torch.int64)
239239
.expand((batch_size, -1)),
240-
past_key_values=make_cache(
240+
past_key_values=make_cache( # type: ignore[operator]
241241
[
242242
(
243243
torch.randn(

0 commit comments

Comments
 (0)