提交 0b742001 authored 作者: Caglar's avatar Caglar

removed the conditions.

上级 ebf371f8
...@@ -124,16 +124,15 @@ def debugprint(obj, depth=-1, print_type=False, ...@@ -124,16 +124,15 @@ def debugprint(obj, depth=-1, print_type=False,
file=_file, ids=ids, file=_file, ids=ids,
scan_ops=scan_ops, stop_on_name=stop_on_name) scan_ops=scan_ops, stop_on_name=stop_on_name)
if hasattr(s.owner, 'op'): for idx, i in enumerate(s.owner.op.outputs):
for idx, i in enumerate(s.owner.op.outputs): if hasattr(i, 'owner') and hasattr(i.owner, 'op'):
if hasattr(i, 'owner') and hasattr(i.owner, 'op'): if isinstance(i.owner.op, theano.scan_module.scan_op.Scan):
if isinstance(i.owner.op, theano.scan_module.scan_op.Scan): scan_ops.append(i)
scan_ops.append(i)
debugmode.debugprint(r=i, prefix=new_prefix, depth=depth, done=done,
debugmode.debugprint(r=i, prefix=new_prefix, depth=depth, done=done, print_type=print_type, file=file,
print_type=print_type, file=file, ids=ids, stop_on_name=stop_on_name,
ids=ids, stop_on_name=stop_on_name, prefix_child=new_prefix_child, scan_ops=scan_ops)
prefix_child=new_prefix_child, scan_ops=scan_ops)
if file is _file: if file is _file:
return file return file
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论