“136c9f32074c5571a37423cfdf05c875425a066a”上不存在“mobile/src/operators/kernel/arm/transpose_kernel.cpp”
提交 eead92af 编写于 作者: K KP

Add sox io.

上级 86ac7b80
......@@ -25,7 +25,8 @@ auto get_info_file(const std::string &path, const std::string &format)
SoxFormat sf(sox_open_read(path.data(),
/*signal=*/nullptr,
/*encoding=*/nullptr,
/*filetype=*/format.data()));
/*filetype=*/format.empty() ? nullptr : format.data()));
validate_input_file(sf, path);
......@@ -54,7 +55,7 @@ auto get_info_fileobj(py::object fileobj, const std::string &format)
SoxFormat sf(sox_open_mem_read(buf, buf_size,
/*signal=*/nullptr,
/*encoding=*/nullptr,
/*filetype=*/format.data()));
/*filetype=*/format.empty() ? nullptr : format.data()));
// In case of streamed data, length can be 0
validate_input_memfile(sf);
......
......@@ -19,7 +19,6 @@ import pybind11
import setuptools
from setuptools import Extension
from setuptools.command.build_ext import build_ext
from setuptools.command.install import install
from setuptools.command.test import test
# set the version here
......@@ -47,11 +46,6 @@ class TestCommand(test):
os.system(f'pytest {benchmark_item}')
class InstallCommand(install):
def run(self):
install.run(self)
class ExtBuildCommand(build_ext):
def run(self):
try:
......@@ -149,7 +143,6 @@ setuptools.setup(
},
ext_modules=get_ext_modules(),
cmdclass={
'install': InstallCommand,
"build_ext": ExtBuildCommand,
'test': TestCommand,
}, )
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册