提交 ddb0aa47 authored 作者: Frederic's avatar Frederic

Added comment.

上级 576159c5
...@@ -7165,6 +7165,10 @@ class AdvancedSubtensor1(Op): ...@@ -7165,6 +7165,10 @@ class AdvancedSubtensor1(Op):
return hash(type(self)) return hash(type(self))
def __eq__(self, other): def __eq__(self, other):
# Don't check the sparse_grad attribute as
# This don't change the output of this op
# So we want the merge optimier to merge two op
# that differ from there sparse_grad attribute.
return type(self) == type(other) return type(self) == type(other)
def __str__(self): def __str__(self):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论