提交 8583f1f9 authored 作者: Ian Goodfellow's avatar Ian Goodfellow

-updated description of config var 'exception_verbosity' based on

review comments from @delallea -moved previous developer-oriented description to code comments
上级 60845fdf
...@@ -261,7 +261,20 @@ AddConfigVar('compute_test_value', ...@@ -261,7 +261,20 @@ AddConfigVar('compute_test_value',
in_c_key=False) in_c_key=False)
"""Note to developers:
Generally your exceptions should use an apply node's __str__
method when exception_verbosity == 'low'. When exception_verbosity
== 'high', you should include a call to printing.min_informative_str
on all important apply nodes.
"""
AddConfigVar('exception_verbosity', AddConfigVar('exception_verbosity',
"If 'low', the text of exceptions will generally refer to apply nodes by their __str__. If 'high', some exceptions will also refer to apply nodes by calling min_informative_str on them.", "If 'low', the text of exceptions will generally refer " \
+ "to apply nodes with short names such as " \
+ "Elemwise{add_no_inplace}. If 'high', some exceptions " \
+ "will also refer to apply nodes with long descriptions " \
+ """ like:
A. Elemwise{add_no_inplace}
B. log_likelihood_v_given_h
C. log_likelihood_h""",
EnumStr('low','high'), EnumStr('low','high'),
in_c_key=False) in_c_key=False)
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论