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

Method _compare

tensorflow/python/kernel_tests/scan_ops_test.py:80–85  ·  view source on GitHub ↗
(self, x, axis, exclusive, reverse)

Source from the content-addressed store, hash-verified

78 ]
79
80 def _compare(self, x, axis, exclusive, reverse):
81 np_out = handle_options(np.cumsum, x, axis, exclusive, reverse)
82 with self.cached_session(use_gpu=True):
83 tf_out = math_ops.cumsum(x, axis, exclusive, reverse).eval()
84
85 self.assertAllClose(np_out, tf_out)
86
87 def _compareAll(self, x, axis):
88 for exclusive in [True, False]:

Callers 1

_compareAllMethod · 0.95

Calls 4

handle_optionsFunction · 0.70
cached_sessionMethod · 0.45
evalMethod · 0.45
assertAllCloseMethod · 0.45

Tested by

no test coverage detected