提交 ec3c89b4 编辑于 作者: Michael Reneer's avatar Michael Reneer 提交者: tensorflow-copybara
浏览文件

Rephrase wording in the tracing documentation.

PiperOrigin-RevId: 340749260
上级 ae53bed4
......@@ -188,9 +188,9 @@ Several other solutions to the general problem of "hide TFF functions from user
error messages" were attempted, including catching and reraising exceptions
(failed due to the inability to create an exception whose stack included only
the lowest level of user code without also including the code that called it),
catching exceptions and replacing their traceback with a filtered one (filtering
tracebacks is hacky, CPython-specific and unsupported by the Python language),
and replacing the exception handler (fails because `sys.excepthook` isn't used
by `absltest` and is overriden by other frameworks). In the end, the
generator-based inversion-of-control allowed for the best end-user experience at
the cost of some TFF implementation complexity.
catching exceptions and replacing their traceback with a filtered one (which is
CPython-specific and unsupported by the Python language), and replacing the
exception handler (fails because `sys.excepthook` isn't used by `absltest` and
is overriden by other frameworks). In the end, the generator-based
inversion-of-control allowed for the best end-user experience at the cost of
some TFF implementation complexity.
支持 Markdown
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册