提交 255cc306 authored 作者: Frederic's avatar Frederic 提交者: ChienliMa

Typo fix in error message and comment

上级 8bb9d773
...@@ -625,10 +625,10 @@ class Function(object): ...@@ -625,10 +625,10 @@ class Function(object):
# Check if given ShareVariables exist # Check if given ShareVariables exist
for sv in swap_svs_ori: for sv in swap_svs_ori:
if sv not in exist_svs: if sv not in exist_svs:
raise ValueError("SharedVairable: %s not found" % raise ValueError("SharedVariable: %s not found" %
(sv.name)) (sv.name))
# Swap SharedVairable in fgraph and ins # Swap SharedVariable in fgraph and ins
for index, (i, in_v) in enumerate(zip(ins, fg_cpy.inputs)): for index, (i, in_v) in enumerate(zip(ins, fg_cpy.inputs)):
# Variables in maker.inputs are defined by user, therefore we # Variables in maker.inputs are defined by user, therefore we
# use them to make comparision and do the mapping. # use them to make comparision and do the mapping.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论