未验证 提交 fa67e6e8 编写于 作者: W whs 提交者: GitHub

Fix unitest of pruning in python3 env. (#20825)

test=develop
上级 cf717fd6
......@@ -55,7 +55,9 @@ def cached_reader(reader, sampled_rate, cache_path, cached_id):
def s_reader():
if os.path.isdir(cache_path):
for file_name in open(os.path.join(cache_path, "list")):
yield np.load(os.path.join(cache_path, file_name.strip()))
yield np.load(
os.path.join(cache_path, file_name.strip()),
allow_pickle=True)
else:
os.makedirs(cache_path)
list_file = open(os.path.join(cache_path, "list"), 'w')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册