提交 f4e324d8 authored 作者: Caglar's avatar Caglar

Apply node should be a scan op.

上级 7a694e25
......@@ -124,7 +124,11 @@ def debugprint(obj, depth=-1, print_type=False,
file=_file, ids=ids,
scan_ops=scan_ops, stop_on_name=stop_on_name)
if hasattr(s.owner, 'op') and isinstance(s.owner.op, theano.scan_module.scan_op.Scan):
if hasattr(s.owner, 'op'):
#Apply node should be a scan op!
assert isinstance(s.owner.op, theano.scan_module.scan_op.Scan)
for idx, i in enumerate(s.owner.op.outputs):
if hasattr(i, 'owner') and hasattr(i.owner, 'op'):
if isinstance(i.owner.op, theano.scan_module.scan_op.Scan):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论