result : relay.Expr
The computed result.
"""
- axis = [axis] if axis and isinstance(axis, int) else axis
+ axis = [axis] if isinstance(axis, int) else axis
return _make.sum(data, axis, keepdims, exclude)
# [False, True, False]]
"""
- axis = [axis] if axis and isinstance(axis, int) else axis
+ axis = [axis] if isinstance(axis, int) else axis
return _make.all(data, axis, keepdims, exclude)
[relay.argmax, _with_keepdims(np.argmax)]]:
verify_reduce(func, (d1, d2, d3, d4), None, False, False, ())
verify_reduce(func, (d1, d2, d3, d4), 2, True, False, (d1, d2, 1, d4))
+ verify_reduce(func, (d1, d2, d3, d4), 0, True, False, (1, d2, d3, d4))
verify_reduce(func, (d1, d2, d3), 1, True, False, (d1, 1, d3))
+ verify_reduce(func, (d1, d2, d3), 0, True, False, (1, d2, d3))
verify_reduce(func, (d1, d2, d3), None, True, False, (1, 1, 1))
verify_reduce(func, (d1, d2, d3), (0, 1), True, False, (1, 1, d3))
verify_reduce(func, (2, 3, 4), 1, True, False, (2, 1, 4))