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

Method testMin

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

Source from the content-addressed store, hash-verified

1147 self._ExecuteAndCompareExact(c, expected=[[3, 4, 5], [4, 5, 6], [7, 8, 9]])
1148
1149 def testMin(self):
1150 c = self._NewComputation()
1151 c.Min(
1152 c.Constant(NumpyArrayF32([1.0, 2.0, 3.0, 4.0, 9.0])),
1153 c.Constant(NumpyArrayF32([1.0, 0.0, 2.0, 7.0, 12.0])))
1154 self._ExecuteAndCompareExact(c, expected=[1.0, 0.0, 2.0, 4.0, 9.0])
1155
1156 def testPad(self):
1157 c = self._NewComputation()

Callers

nothing calls this directly

Calls 5

NumpyArrayF32Function · 0.85
_NewComputationMethod · 0.80
MinMethod · 0.45
ConstantMethod · 0.45

Tested by

no test coverage detected