From 0bb5d87d1ee98289bbe241e1f2caf1ab8e64c69c Mon Sep 17 00:00:00 2001 From: lyblsgo <lyblsgo@163.com> Date: 星期六, 22 四月 2023 20:34:07 +0800 Subject: [PATCH] Merge branch 'dev_knf' of https://github.com/alibaba-damo-academy/FunASR into dev_knf --- funasr/bin/lm_inference_launch.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/funasr/bin/lm_inference_launch.py b/funasr/bin/lm_inference_launch.py index 492ebab..d229cc6 100644 --- a/funasr/bin/lm_inference_launch.py +++ b/funasr/bin/lm_inference_launch.py @@ -2,6 +2,9 @@ # Copyright ESPnet (https://github.com/espnet/espnet). All Rights Reserved. # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) +import torch +torch.set_num_threads(1) + import argparse import logging import os -- Gitblit v1.9.1