提交 ef5ce2e0 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Rephrase a comment to be more accurate

上级 c2aca18f
......@@ -1354,10 +1354,10 @@ class TensorConstantSignature(tuple):
(self.no_nan.mask.all() or
(self.no_nan == other.no_nan).all()))
else:
# Simple case where we do not need to take care of NaN / Inf values
# (note that if there are NaN or Inf values in d1, this will return
# Simple case where we do not need to worry about NaN values.
# (note that if there are NaN values in d1, this will return
# False, which is why we do not bother with testing `other.has_nan`
# in the `if` above).
# here).
return (self.sum == other.sum) and numpy.all(d0 == d1)
def __hash__(self):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论