提交 9c407da9 authored 作者: Frederic's avatar Frederic

change default of debugprint to print identifier with char by default,

上级 a5331484
...@@ -502,7 +502,7 @@ def char_from_number(number): ...@@ -502,7 +502,7 @@ def char_from_number(number):
def debugprint(r, prefix='', depth=-1, done=None, print_type=False, def debugprint(r, prefix='', depth=-1, done=None, print_type=False,
file=sys.stdout, print_destroy_map=False, print_view_map=False, file=sys.stdout, print_destroy_map=False, print_view_map=False,
order=[], ids='id'): order=[], ids='CHAR'):
"""Print the graph leading to `r` to given depth. """Print the graph leading to `r` to given depth.
:param r: Variable instance :param r: Variable instance
......
...@@ -29,7 +29,7 @@ _logger = logging.getLogger("theano.printing") ...@@ -29,7 +29,7 @@ _logger = logging.getLogger("theano.printing")
def debugprint(obj, depth=-1, print_type=False, def debugprint(obj, depth=-1, print_type=False,
file=None, ids='id'): file=None, ids='CHAR'):
"""Print a computation graph to file """Print a computation graph to file
:type obj: Variable, Apply, or Function instance :type obj: Variable, Apply, or Function instance
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论