提交 1dcc7eb2 authored 作者: Frederic's avatar Frederic

flake8

上级 ec02ddfe
...@@ -698,12 +698,12 @@ def debugprint(r, prefix='', depth=-1, done=None, print_type=False, ...@@ -698,12 +698,12 @@ def debugprint(r, prefix='', depth=-1, done=None, print_type=False,
if smap: if smap:
data = " " + str(smap[a.outputs[0]]) data = " " + str(smap[a.outputs[0]])
print('%s%s%s %s%s \'%s\' %s %s %s%s' % (prefix, a.op, print('%s%s%s %s%s \'%s\' %s %s %s%s' % (prefix, a.op,
idx, idx,
id_str, type_str, id_str, type_str,
r_name, r_name,
destroy_map_str, destroy_map_str,
view_map_str, view_map_str,
o, data), file=file) o, data), file=file)
else: else:
op_time = profile.apply_time[a] op_time = profile.apply_time[a]
op_time_percent = (op_time / profile.fct_call_time) * 100 op_time_percent = (op_time / profile.fct_call_time) * 100
...@@ -771,7 +771,7 @@ def debugprint(r, prefix='', depth=-1, done=None, print_type=False, ...@@ -771,7 +771,7 @@ def debugprint(r, prefix='', depth=-1, done=None, print_type=False,
data = " " + str(smap[r]) data = " " + str(smap[r])
id_str = get_id_str(r) id_str = get_id_str(r)
print('%s%s %s%s%s' % (prefix, r, id_str, print('%s%s %s%s%s' % (prefix, r, id_str,
type_str, data), type_str, data),
file=file) file=file)
return file return file
......
...@@ -2666,7 +2666,7 @@ class Alloc(gof.Op): ...@@ -2666,7 +2666,7 @@ class Alloc(gof.Op):
raise TypeError( raise TypeError(
'Each shape dimensions to Alloc must be scalars, ' 'Each shape dimensions to Alloc must be scalars, '
'but dimensions %s is not for apply node: %s' % 'but dimensions %s is not for apply node: %s' %
(i, s_as_str)) (i, s_as_str))
# if s is constant 1, then we're broadcastable in that dim # if s is constant 1, then we're broadcastable in that dim
try: try:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论