MCPcopy Create free account
hub / github.com/apache/tvm-ffi / test_nan_hash

Function test_nan_hash

tests/python/test_dataclass_hash.py:100–102  ·  view source on GitHub ↗

All NaN values hash the same (consistent with RecursiveEq).

()

Source from the content-addressed store, hash-verified

98
99
100def test_nan_hash() -> None:
101 """All NaN values hash the same (consistent with RecursiveEq)."""
102 assert RecursiveHash(math.nan) == RecursiveHash(math.nan)
103
104
105def test_nan_payloads_hash_equal() -> None:

Callers

nothing calls this directly

Calls 1

RecursiveHashFunction · 0.90

Tested by

no test coverage detected