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

Method testRev

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

Source from the content-addressed store, hash-verified

1196 self._ExecuteAndCompareExact(c, expected=[[1, 2, 3, 4], [5, 6, 7, 8]])
1197
1198 def testRev(self):
1199 c = self._NewComputation()
1200 c.Rev(
1201 c.Constant(NumpyArrayS32([[[1, 2], [3, 4]], [[5, 6], [7, 8]]])),
1202 dimensions=[0, 2])
1203 self._ExecuteAndCompareExact(
1204 c, expected=[[[6, 5], [8, 7]], [[2, 1], [4, 3]]])
1205
1206 def testReducePrecision(self):
1207 c = self._NewComputation()

Callers

nothing calls this directly

Calls 5

NumpyArrayS32Function · 0.85
_NewComputationMethod · 0.80
RevMethod · 0.80
ConstantMethod · 0.45

Tested by

no test coverage detected