Skip to content

Commit c45392e

Browse files
author
ruiren_microsoft
committed
lint
1 parent 0ab757f commit c45392e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎scripts/generate_golden.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,9 @@ def _generate_speech_to_text(case: TestCase, json_path: Path, device: str) -> No
493493
decoder_start_id = (
494494
model.config.decoder_start_token_id or model.generation_config.decoder_start_token_id
495495
)
496-
decoder_input_ids = torch.tensor([[decoder_start_id]], dtype=torch.long, device=model_device)
496+
decoder_input_ids = torch.tensor(
497+
[[decoder_start_id]], dtype=torch.long, device=model_device
498+
)
497499
with torch.no_grad():
498500
outputs = model(
499501
input_features=input_features,

0 commit comments

Comments
 (0)