ReduceAny

public final class ReduceAny

Computes the "logical or" of elements across dimensions of a tensor.

Reduces `input` along the dimensions given in `axis`. Unless `keep_dims` is true, the rank of the tensor is reduced by 1 for each entry in `axis`. If `keep_dims` is true, the reduced dimensions are retained with length 1.

Nested Classes

class ReduceAny.Options Optional attributes for ReduceAny  

Constants

String OP_NAME The name of this op, as known by TensorFlow core engine

Public Methods

Output<TBool>
asOutput()
Returns the symbolic handle of the tensor.
static ReduceAny
create(Scope scope, Operand<TBool> input, Operand<? extends TNumber> axis, Options... options)
Factory method to create a class wrapping a new ReduceAny operation.
static ReduceAny.Options
keepDims(Boolean keepDims)
Output<TBool>
output()
The reduced tensor.

Inherited Methods

Constants

public static final String OP_NAME

The name of this op, as known by TensorFlow core engine

Constant Value: "Any"

Public Methods

public Output<TBool> asOutput ()

Returns the symbolic handle of the tensor.

Inputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.

public static ReduceAny create (Scope scope, Operand<TBool> input, Operand<? extends TNumber> axis, Options... options)

Factory method to create a class wrapping a new ReduceAny operation.

Parameters
scope current scope
input The tensor to reduce.
axis The dimensions to reduce. Must be in the range `[-rank(input), rank(input))`.
options carries optional attributes values
Returns
  • a new instance of ReduceAny

public static ReduceAny.Options keepDims (Boolean keepDims)

Parameters
keepDims If true, retain reduced dimensions with length 1.

public Output<TBool> output ()

The reduced tensor.