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

Method _compare

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

Source from the content-addressed store, hash-verified

202 ]
203
204 def _compare(self, x, axis, exclusive, reverse):
205 np_out = handle_options(np.cumprod, x, axis, exclusive, reverse)
206 with self.cached_session(use_gpu=True):
207 tf_out = math_ops.cumprod(x, axis, exclusive, reverse).eval()
208
209 self.assertAllClose(np_out, tf_out)
210
211 def _compareAll(self, x, axis):
212 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