提交 265fcdff authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Fix comment

上级 4bb02181
...@@ -5131,7 +5131,8 @@ def inc_subtensor(x, y, inplace=False, set_instead_of_inc=False, ...@@ -5131,7 +5131,8 @@ def inc_subtensor(x, y, inplace=False, set_instead_of_inc=False,
# inc_subtensor((x.T)[i].T, y). # inc_subtensor((x.T)[i].T, y).
# We could get all the way to x, and then get rid of the dimshuffles # We could get all the way to x, and then get rid of the dimshuffles
# completely, but the problem is that advanced_inc_subtensor1 can only # completely, but the problem is that advanced_inc_subtensor1 can only
# work on the last dimension of x, just like advanced_subtensor1. # work on the first (outer-most, left-most) dimension of x,
# just like advanced_subtensor1.
# So we call advanced_inc_subtensor1(x.T, i, y), but then we need to # So we call advanced_inc_subtensor1(x.T, i, y), but then we need to
# return something that has the same shape as x, not as x.T (inner_x). # return something that has the same shape as x, not as x.T (inner_x).
# So re-apply the outer dimshuffle on the new inc_subtensor, # So re-apply the outer dimshuffle on the new inc_subtensor,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论