onnx export

This commit is contained in:
游雁 2023-02-27 14:42:13 +08:00
parent f98c4bf6d2
commit 6da6a7847f

View File

@ -11,8 +11,8 @@ from funasr.export.models import get_model
import numpy as np
import random
torch_version = float(".".join(torch.__version__.split(".")[:2]))
assert torch_version > 1.9
# torch_version = float(".".join(torch.__version__.split(".")[:2]))
# assert torch_version > 1.9
class ASRModelExportParaformer:
def __init__(self, cache_dir: Union[Path, str] = None, onnx: bool = True):