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

Method testGt

tensorflow/compiler/xla/python/xla_client_test.py:1098–1103  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1096 np.testing.assert_allclose, c, (), expected=[True, False, True, True])
1097
1098 def testGt(self):
1099 c = self._NewComputation()
1100 c.Gt(
1101 c.Constant(NumpyArrayS32([1, 2, 3, 4, 9])),
1102 c.Constant(NumpyArrayS32([1, 0, 2, 7, 12])))
1103 self._ExecuteAndCompareExact(c, expected=[False, True, True, False, False])
1104
1105 def testGe(self):
1106 c = self._NewComputation()

Callers

nothing calls this directly

Calls 4

NumpyArrayS32Function · 0.85
_NewComputationMethod · 0.80
ConstantMethod · 0.45

Tested by

no test coverage detected