Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
linrrry committed Jul 3, 2024
1 parent 8d44852 commit 4973c06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wenet/bin/recognize_onnx_gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,9 @@ def main():

with torch.no_grad(), open(args.result_file, 'w') as fout:
for _, batch in enumerate(test_data_loader):
keys, feats, _, feats_lengths, _ = batch
keys = batch['keys']
feats = batch['feats']
feats_lengths = batch['feats_lengths']
feats, feats_lengths = feats.numpy(), feats_lengths.numpy()
if args.fp16:
feats = feats.astype(np.float16)
Expand Down

0 comments on commit 4973c06

Please sign in to comment.