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

Typo fix

上级 a0c558bb
...@@ -5073,7 +5073,7 @@ def inc_subtensor(x, y, inplace=False, set_instead_of_inc=False, ...@@ -5073,7 +5073,7 @@ def inc_subtensor(x, y, inplace=False, set_instead_of_inc=False,
if (x.broadcastable[dim + dim_offset] if (x.broadcastable[dim + dim_offset]
and not y.broadcastable[dim]): and not y.broadcastable[dim]):
# It is acceptable to try to increment a subtensor with a # It is acceptable to try to increment a subtensor with a
# a broadcastable dim with a tensor that is not broadcastable # broadcastable dim with a tensor that is not broadcastable
# on that dimension. However, its length must then be 1. # on that dimension. However, its length must then be 1.
# We insert a Rebroadcast Op to make sure it is the case. # We insert a Rebroadcast Op to make sure it is the case.
y = addbroadcast(y, dim) y = addbroadcast(y, dim)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论