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

Function test_nan_payloads_hash_equal

tests/python/test_dataclass_hash.py:105–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103
104
105def test_nan_payloads_hash_equal() -> None:
106 nan1 = _make_nan_from_payload(0x1)
107 nan2 = _make_nan_from_payload(0x2)
108 assert math.isnan(nan1) and math.isnan(nan2)
109 assert RecursiveHash(nan1) == RecursiveHash(nan2)
110
111
112def test_nan_payloads_in_nested_array_hash() -> None:

Callers

nothing calls this directly

Calls 2

RecursiveHashFunction · 0.90
_make_nan_from_payloadFunction · 0.70

Tested by

no test coverage detected