Skip to content

funasr_onnx移除对torch依赖 #2604

@yimlin

Description

@yimlin

funasr_onnx已经实现了基于onnx runtime。
但是在sensevoice_bin.py代码的__call__函数中,两处地方依赖了torch库。

  • torch.from_numpy(ctc_logits)
  • torch.unique_consecutive(yseq, dim=-1)

这两个函数完全可以通过其他方式支持,从而避免依赖torch库(几百M)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions