提交 8ba7f66b authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Minor typo fix

上级 dcb5e098
......@@ -622,7 +622,7 @@ def get_scalar_constant_value(v):
isinstance(v.owner.op.idx_list[0], (int, long,
numpy.integer))):
# Python 2.4 don't support indexing with numpy.integer
# Python 2.4 does not support indexing with numpy.integer
# So we cast it.
idx = int(v.owner.op.idx_list[0])
ret = v.owner.inputs[0].owner.inputs[idx]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论