提交 4b9cfe63 authored 作者: Caglar's avatar Caglar

Did the Fred's changes.

上级 7c5bfadc
...@@ -553,7 +553,7 @@ def debugprint(r, prefix='', depth=-1, done=None, print_type=False, ...@@ -553,7 +553,7 @@ def debugprint(r, prefix='', depth=-1, done=None, print_type=False,
done[obj] = id_str done[obj] = id_str
return id_str return id_str
if hasattr(r, 'owner') and hasattr(r.owner, 'op'): if hasattr(r.owner, 'op'):
# this variable is the output of computation, # this variable is the output of computation,
# so just print out the apply # so just print out the apply
a = r.owner a = r.owner
...@@ -610,7 +610,6 @@ def debugprint(r, prefix='', depth=-1, done=None, print_type=False, ...@@ -610,7 +610,6 @@ def debugprint(r, prefix='', depth=-1, done=None, print_type=False,
new_prefix_child = prefix_child + ' ' new_prefix_child = prefix_child + ' '
if hasattr(i, 'owner') and hasattr(i.owner, 'op'): if hasattr(i, 'owner') and hasattr(i.owner, 'op'):
if i.owner.op is not None:
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)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论