未验证 提交 e954a6e5 编写于 作者: X Xiaoyang LI 提交者: GitHub

fix python3 build optimize tool error

* fix python3 build error, test=develop

* fix ci, test=develop
上级 caeb9c82
......@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import print_function
import sys
import logging
from ast import RegisterLiteKernelParser
......@@ -51,7 +52,7 @@ class %s : public KernelLite<TARGET(%s), PRECISION(%s), DATALAYOUT(%s)> {
with open(ops_list_path) as f:
paths = set([path for path in f])
for path in paths:
print 'path', path
print('path', path)
with open(path.strip()) as g:
c = g.read()
kernel_parser = RegisterLiteKernelParser(c)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册