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

Method _compare

tensorflow/compiler/tests/scan_ops_test.py:79–86  ·  view source on GitHub ↗
(self, x, axis, exclusive, reverse)

Source from the content-addressed store, hash-verified

77 return set(self.int_types).intersection([np.int32, np.int64])
78
79 def _compare(self, x, axis, exclusive, reverse):
80 np_out = handle_options(np.cumsum, x, axis, exclusive, reverse)
81 with self.session(), self.test_scope():
82 p = array_ops.placeholder(x.dtype)
83 tf_out = math_ops.cumsum(p, axis, exclusive, reverse).eval(
84 feed_dict={p: x})
85
86 self.assertAllClose(np_out, tf_out)
87
88 def _compareAll(self, x, axis):
89 for exclusive in [True, False]:

Callers 1

_compareAllMethod · 0.95

Calls 6

handle_optionsFunction · 0.70
sessionMethod · 0.45
test_scopeMethod · 0.45
placeholderMethod · 0.45
evalMethod · 0.45
assertAllCloseMethod · 0.45

Tested by

no test coverage detected