提交 00e10975 编写于 作者: H Hui Zhang

update travis to py3

上级 f965d72f
......@@ -13,11 +13,13 @@ addons:
apt:
packages:
- git
- python
- python-pip
- python2.7-dev
- python3
- python3-pip
- python3-dev
before_install:
- python --version
- pip --version
- sudo pip install -U virtualenv pre-commit pip
- docker pull paddlepaddle/paddle:latest
......
......@@ -17,7 +17,7 @@ unittest(){
fi
find . -name 'tests' -type d -print0 | \
xargs -0 -I{} -n1 bash -c \
'python -m unittest discover -v -s {}'
'python3 -m unittest discover -v -s {}'
cd - > /dev/null
}
......
......@@ -114,8 +114,6 @@ def ctc_beam_search_decoder_batch(probs_split,
batch_beam_results = swig_decoders.ctc_beam_search_decoder_batch(
probs_split, vocabulary, beam_size, num_processes, cutoff_prob,
cutoff_top_n, ext_scoring_func)
batch_beam_results = [
[(res[0], res[1]) for res in beam_results]
for beam_results in batch_beam_results
]
batch_beam_results = [[(res[0], res[1]) for res in beam_results]
for beam_results in batch_beam_results]
return batch_beam_results
import collections
import paddle.fluid as fluid
import numpy as np
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册