MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / testHash

Method testHash

tensorflow/python/lib/core/bfloat16_test.py:78–81  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

76 self.assertEqual("bfloat16(nan)", repr(bfloat16(float("nan"))))
77
78 def testHash(self):
79 self.assertEqual(0, hash(bfloat16(0.0)))
80 self.assertEqual(0x3f80, hash(bfloat16(1.0)))
81 self.assertEqual(0x7fc0, hash(bfloat16(float("nan"))))
82
83 # Tests for Python operations
84 def testNegate(self):

Callers

nothing calls this directly

Calls 1

hashClass · 0.85

Tested by

no test coverage detected