Skip to content

Commit

Permalink
fixed input format
Browse files Browse the repository at this point in the history
  • Loading branch information
shvbsle committed Jan 14, 2025
1 parent 5995b8c commit 19da84d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/images/neuron-inference/infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def run_inference(model, tokenizer, batch_size, mode):
with torch.no_grad():
for batch_idx, batch in enumerate(dataloader):
batch_input_tensor, batch_attention_tensor, _ = batch
input_tuple = tuple(batch_input_tensor, batch_attention_tensor)
input_tuple = tuple([batch_input_tensor, batch_attention_tensor])
print_info(f"Processing batch {batch_idx}/{total_batches - 1}.")
start_time = time.time()
try:
Expand Down

0 comments on commit 19da84d

Please sign in to comment.