未验证 提交 9064b93e 编写于 作者: Y YangZhou 提交者: GitHub

[audio]patch:fix tensor_utils error (#2738) (#2739)

* fix tensor utils
上级 1fd44795
......@@ -29,7 +29,6 @@ MAC:test build whl envrioment:
* gcc/g++/gfortran 12.2.0
* cpu Intel Xeon E5 x86_64
Windows:
not support: paddleaudio C++ extension lib (sox io, kaldi native fbank)
python setup.py bdist_wheel
\ No newline at end of file
python setup.py bdist_wheel
// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
#ifdef INCLUDE_KALDI
#include "paddleaudio/src/pybind/kaldi/kaldi_feature.h"
#include "paddleaudio/third_party/kaldi/feat/feature-fbank.h"
#endif
#ifdef INCLUDE_SOX
#include "paddleaudio/src/pybind/sox/io.h"
......
......@@ -24,9 +24,9 @@ from typing import Tuple
import paddle
from paddle import jit
from paddle import nn
from paddleaudio.utils.tensor_utils import add_sos_eos
from paddleaudio.utils.tensor_utils import th_accuracy
from paddlespeech.audio.utils.tensor_utils import add_sos_eos
from paddlespeech.audio.utils.tensor_utils import th_accuracy
from paddlespeech.s2t.frontend.utility import IGNORE_ID
from paddlespeech.s2t.frontend.utility import load_cmvn
from paddlespeech.s2t.modules.cmvn import GlobalCMVN
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册