提交 cf9903f8 authored 作者: Frederic's avatar Frederic

small fix that caused error during error reporting.

上级 8dd78819
...@@ -119,7 +119,7 @@ def raise_with_op(op, thunk=None, exc_info=None): ...@@ -119,7 +119,7 @@ def raise_with_op(op, thunk=None, exc_info=None):
for ipt in thunk.inputs] for ipt in thunk.inputs]
strides = [getattr(ipt[0], 'strides', 'No strides') strides = [getattr(ipt[0], 'strides', 'No strides')
for ipt in thunk.inputs] for ipt in thunk.inputs]
types = [getattr(ipt[0], 'type', 'No type') types = [getattr(ipt, 'type', 'No type')
for ipt in op.inputs] for ipt in op.inputs]
detailed_err_msg += ("\nInputs shapes: %s" % shapes + detailed_err_msg += ("\nInputs shapes: %s" % shapes +
"\nInputs strides: %s" % strides + "\nInputs strides: %s" % strides +
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论