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

Method testQR

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

Source from the content-addressed store, hash-verified

1393 np.testing.assert_equal(result[1], [[2, 0, 3, 1], [5, 7, 6, 4]])
1394
1395 def testQR(self):
1396 a = np.array(
1397 [[4, 6, 8, 10], [6, 45, 54, 63], [8, 54, 146, 166], [10, 63, 166, 310]],
1398 dtype=np.float32)
1399 c = self._NewComputation()
1400 c.QR(c.Constant(a), full_matrices=True)
1401 q, r = self._Execute(c, ())
1402 np.testing.assert_allclose(np.dot(q, r), a, rtol=1e-4)
1403
1404 def testEigh(self):
1405 a = np.array(

Callers

nothing calls this directly

Calls 4

_NewComputationMethod · 0.80
QRMethod · 0.80
ConstantMethod · 0.45
_ExecuteMethod · 0.45

Tested by

no test coverage detected