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

flake8

上级 ec02ddfe
......@@ -698,12 +698,12 @@ def debugprint(r, prefix='', depth=-1, done=None, print_type=False,
if smap:
data = " " + str(smap[a.outputs[0]])
print('%s%s%s %s%s \'%s\' %s %s %s%s' % (prefix, a.op,
idx,
id_str, type_str,
r_name,
destroy_map_str,
view_map_str,
o, data), file=file)
idx,
id_str, type_str,
r_name,
destroy_map_str,
view_map_str,
o, data), file=file)
else:
op_time = profile.apply_time[a]
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,
data = " " + str(smap[r])
id_str = get_id_str(r)
print('%s%s %s%s%s' % (prefix, r, id_str,
type_str, data),
type_str, data),
file=file)
return file
......
......@@ -2666,7 +2666,7 @@ class Alloc(gof.Op):
raise TypeError(
'Each shape dimensions to Alloc must be scalars, '
'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
try:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论