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

update doc.

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