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

Method testBasic

tensorflow/compiler/tests/eager_test.py:303–308  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

301class EagerFunctionTest(xla_test.XLATestCase):
302
303 def testBasic(self):
304 with self.test_scope():
305 matmul = function.defun(math_ops.matmul)
306 t = constant_op.constant([[1.0, 2.0], [3.0, 4.0]])
307 sq = matmul(t, t, transpose_a=True)
308 self.assertAllEqual(sq.numpy().reshape(-1), [10, 14, 14, 20])
309
310 def testConv(self):
311 if 'GPU' in self.device:

Callers

nothing calls this directly

Calls 7

reshapeMethod · 0.80
matmulFunction · 0.50
test_scopeMethod · 0.45
defunMethod · 0.45
constantMethod · 0.45
assertAllEqualMethod · 0.45
numpyMethod · 0.45

Tested by

no test coverage detected