mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-29 20:14:01 +00:00
[Whisper] Fix provider in export procress (#16545)
type of parameter `provider` is string.
This commit is contained in:
parent
cb4bf4f5c8
commit
2f56815344
1 changed files with 1 additions and 1 deletions
|
|
@ -397,7 +397,7 @@ def main(argv=None):
|
|||
ort_session = create_onnxruntime_session(
|
||||
args.beam_model_output_dir,
|
||||
use_gpu=args.use_gpu,
|
||||
provider=["CUDAExecutionProvider", "CPUExecutionProvider"] if args.use_gpu else ["CPUExecutionProvider"],
|
||||
provider=args.provider,
|
||||
)
|
||||
device = torch.device("cuda:0" if args.use_gpu else "cpu")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue