提交 80336cfc authored 作者: Olivier Delalleau's avatar Olivier Delalleau

More typo fixes

上级 2f292f25
...@@ -86,7 +86,7 @@ class FunctionGraph(utils.object2): ...@@ -86,7 +86,7 @@ class FunctionGraph(utils.object2):
is added via the constructor. How constructed is the FunctionGraph? is added via the constructor. How constructed is the FunctionGraph?
:param clone: If true, we will clone the graph. This is :param clone: If true, we will clone the graph. This is
usefull to remove the constant cache problem. useful to remove the constant cache problem.
""" """
if clone: if clone:
...@@ -138,8 +138,8 @@ class FunctionGraph(utils.object2): ...@@ -138,8 +138,8 @@ class FunctionGraph(utils.object2):
if getattr(r, 'cached', False): if getattr(r, 'cached', False):
raise CachedConstantError( raise CachedConstantError(
"You manually constructed a FunctionGraph, but you passed it a" "You manually constructed a FunctionGraph, but you passed it a"
" graph that have cached constant. This should happen." " graph that has a cached constant. This should not happen."
" Clone the graph before building the FunctionGraph") " Clone the graph before building the FunctionGraph.")
if (hasattr(r, 'fgraph') and if (hasattr(r, 'fgraph') and
r.fgraph is not None and r.fgraph is not None and
r.fgraph is not self): r.fgraph is not self):
......
...@@ -89,8 +89,8 @@ def shape_of_variables(fgraph, input_shapes): ...@@ -89,8 +89,8 @@ def shape_of_variables(fgraph, input_shapes):
if any([i not in fgraph.inputs for i in input_shapes.keys()]): if any([i not in fgraph.inputs for i in input_shapes.keys()]):
raise ValueError( raise ValueError(
"input_shapes keys aren't in the fgraph.inputs. FunctionGraph()" "input_shapes keys aren't in the fgraph.inputs. FunctionGraph()"
" interface changed. Now by default, it clone the graph it receive." " interface changed. Now by default, it clones the graph it receives."
" To have the old behavior, give him this new parameter `clone=False`.") " To have the old behavior, give it this new parameter `clone=False`.")
numeric_input_dims = [dim for inp in fgraph.inputs numeric_input_dims = [dim for inp in fgraph.inputs
for dim in input_shapes[inp]] for dim in input_shapes[inp]]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论