Skip to content

Commit cd1a19f

Browse files
committed
add comments
1 parent aa8b0f8 commit cd1a19f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

onnx_diagnostic/tasks/text_generation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ def get_inputs(
245245
.to(torch.int64)
246246
.expand((batch_size, -1)),
247247
)
248+
# Caches are involved
248249
if past_sequence_length > 0:
249250
inputs["past_key_values"] = make_cache(
250251
[

0 commit comments

Comments
 (0)