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

Method testTrace

tensorflow/python/kernel_tests/trace_op_test.py:39–43  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

37
38 @test_util.run_deprecated_v1
39 def testTrace(self):
40 for dtype in [np.int32, np.float32, np.float64]:
41 for shape in [[2, 2], [2, 3], [3, 2], [2, 3, 2], [2, 2, 2, 3]]:
42 x = np.random.rand(np.prod(shape)).astype(dtype).reshape(shape)
43 self.compare(x)
44
45
46if __name__ == "__main__":

Callers

nothing calls this directly

Calls 3

compareMethod · 0.95
reshapeMethod · 0.80
randMethod · 0.80

Tested by

no test coverage detected