zhifu gao
2024-03-12 c3192dffdd79c7b8a75ce1dc880b0a17b72d33a1
funasr/bin/export.py
@@ -24,8 +24,10 @@
    if kwargs.get("debug", False):
        import pdb; pdb.set_trace()
    if "device" not in kwargs:
        kwargs["device"] = "cpu"
    model = AutoModel(**kwargs)
    
    model = AutoModel(export_model=True, **kwargs)
    res = model.export(input=kwargs.get("input", None),
                       type=kwargs.get("type", "onnx"),
                       quantize=kwargs.get("quantize", False),