提交 8bfc9eb5 authored 作者: Frederic's avatar Frederic

update doc.

上级 262b4f75
......@@ -580,8 +580,8 @@ class Function(object):
outputs = self.fn()
except Exception:
if hasattr(self.fn, 'position_of_error'):
# this is a new vm-provided function
# the C VM needs this because the exception manipulation
# this is a new vm-provided function or c linker
# they need this because the exception manipulation
# done by raise_with_op is not implemented in C.
if hasattr(self.fn, 'thunks'):
# For the CVM
......
......@@ -63,8 +63,8 @@ def raise_with_op(op, thunk=None, exc_info=None):
Parameters
----------
op : object
The Op object that resulted in the raised exception.
op : Apply node
The Apply node object that resulted in the raised exception.
exc_info : tuple, optional
A tuple containing the exception type, exception object and
associated traceback, as would be returned by a call to
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论