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

Method _compare

tensorflow/python/kernel_tests/cast_op_test.py:126–129  ·  view source on GitHub ↗
(self, x, dst_dtype, expected, use_gpu=False)

Source from the content-addressed store, hash-verified

124 # integer values in somewhat unexpected ways. And they behave
125 # differently on CPU and GPU.
126 def _compare(self, x, dst_dtype, expected, use_gpu=False):
127 np.testing.assert_equal(
128 self._cast(
129 x, dst_dtype, use_gpu=use_gpu), dst_dtype(expected))
130
131 @test_util.run_deprecated_v1
132 def testIntToFloatBoundary(self):

Callers 2

testInfNanMethod · 0.95

Calls 2

_castMethod · 0.95
assert_equalMethod · 0.80

Tested by

no test coverage detected