Home | History | Annotate | Download | only in kernel_tests

Lines Matching refs:reverse

43 def handle_options(func, x, axis, exclusive, reverse):
49 if reverse:
67 if reverse:
79 def _compare(self, x, axis, exclusive, reverse):
80 np_out = handle_options(np.cumsum, x, axis, exclusive, reverse)
82 tf_out = math_ops.cumsum(x, axis, exclusive, reverse).eval()
88 for reverse in [True, False]:
89 self._compare(x, axis, exclusive, reverse)
146 def _compareGradient(self, shape, axis, exclusive, reverse):
150 result = math_ops.cumsum(t, axis, exclusive, reverse)
174 for reverse in [True, False]:
175 self._compareGradient([5, 10], axis, exclusive, reverse)
185 def _compare(self, x, axis, exclusive, reverse):
186 np_out = handle_options(np.cumprod, x, axis, exclusive, reverse)
188 tf_out = math_ops.cumprod(x, axis, exclusive, reverse).eval()
194 for reverse in [True, False]:
195 self._compare(x, axis, exclusive, reverse)
252 def _compareGradient(self, shape, axis, exclusive, reverse):
256 result = math_ops.cumprod(t, axis, exclusive, reverse)
280 for reverse in [True, False]:
281 self._compareGradient([2, 4], axis, exclusive, reverse)