提交 1f78522d authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Merge pull request #1076 from abalkin/doc-fixes

Fixed a few typos. See library/printing.html.
......@@ -57,8 +57,8 @@ Theano also provides :func:`theano.printing.pydotprint` that creates a png image
The parameter in T.dscalar('x') in the first line is the name of this variable
in the graph. This name is used when printing the graph to make it more readable.
If no name is provided the variable x is printed as its type as. In this example
<TensorType(float64, scalar)>.
If no name is provided the variable x is printed as its type as returned by
x.type(). In this example - <TensorType(float64, scalar)>.
The name parameter can be any string. There are no naming restrictions:
in particular, you can have many variables with the same name.
......@@ -121,7 +121,7 @@ Elemwise{mul} [@A] ''
|Elemwise{mul} [@B] ''
|Elemwise{pow} [@C] ''
If the depth parameter is provided, it limits the nuber of levels that are
If the depth parameter is provided, it limits the number of levels that are
shown.
......
......@@ -40,7 +40,7 @@ def debugprint(obj, depth=-1, print_type=False,
:type depth: integer
:param depth: print graph to this depth (-1 for unlimited)
:type print_type: boolean
:param print_type: wether to print the type of printed objects
:param print_type: whether to print the type of printed objects
:type file: None, 'str', or file-like object
:param file: print to this file ('str' means to return a string)
:type ids: str
......@@ -531,11 +531,11 @@ def pydotprint(fct, outfile=None,
label each edge between an input and the Apply node with the
input's index.
green boxes are inputs variables to the graph
blue boxes are outputs variables of the graph
grey boxes are variables that are not outputs and are not used
Green boxes are inputs variables to the graph,
blue boxes are outputs variables of the graph,
grey boxes are variables that are not outputs and are not used,
red ellipses are transfers from/to the gpu (ops with names GpuFromHost,
HostFromGpu)
HostFromGpu).
"""
if colorCodes is None:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论