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

Rephrase a comment to be more accurate

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