Performs logical OR along the specified axes.
Arguments
- x
(
arrayish)
Arrayish value of boolean data type.- axes
(
integer())
Axes to reduce over. Negative values count from the end, i.e.-1refers to the last axis.- drop
(
logical(1))
Whether to drop the reduced axes from the output shape. IfTRUE, the reduced axes are removed. IfFALSE, the reduced axes are set to 1.
Value
arrayish
Boolean array. Never ambiguous.
When drop = TRUE, the shape is that of x with axes removed.
When drop = FALSE, the shape is that of x with axes set to 1.
StableHLO
Lowers to hlo_reduce() with hlo_or() as the reducer.