提交 9e680aca authored 作者: Frederic Bastien's avatar Frederic Bastien

Small change to pydotprint* about how we print the type to be more consistent.

上级 b7cbe8fb
......@@ -503,7 +503,7 @@ def pydotprint(fct, outfile=None,
dstr = 'val='+str(numpy.asarray(var.data))
if '\n' in dstr:
dstr = dstr[:dstr.index('\n')]
varstr = '%s [%s]'% (dstr, str(var.type))
varstr = '%s %s'% (dstr, str(var.type))
elif var in input_update and input_update[var].variable.name is not None:
if var_with_name_simple:
varstr = input_update[var].variable.name
......@@ -709,7 +709,7 @@ def pydotprint_variables(vars,
dstr = 'val='+str(var.data)
if '\n' in dstr:
dstr = dstr[:dstr.index('\n')]
varstr = '%s [%s]'% (dstr, str(var.type))
varstr = '%s %s'% (dstr, str(var.type))
else:
#a var id is needed as otherwise var with the same type will be merged in the graph.
varstr = str(var.type)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论