@Operator public final class ReduceAny extends PrimitiveOp implements Operand<Boolean>
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.
Modifier and Type | Class and Description |
---|---|
static class |
ReduceAny.Options
Optional attributes for
ReduceAny |
operation
Modifier and Type | Method and Description |
---|---|
Output<Boolean> |
asOutput()
Returns the symbolic handle of a tensor.
|
static <T extends Number> |
create(Scope scope,
Operand<Boolean> input,
Operand<T> axis,
ReduceAny.Options... options)
Factory method to create a class wrapping a new ReduceAny operation.
|
static ReduceAny.Options |
keepDims(Boolean keepDims) |
Output<Boolean> |
output()
The reduced tensor.
|
equals, hashCode, op, toString
public static <T extends Number> ReduceAny create(Scope scope, Operand<Boolean> input, Operand<T> axis, ReduceAny.Options... options)
scope
- current scopeinput
- The tensor to reduce.axis
- The dimensions to reduce. Must be in the range
`[-rank(input), rank(input))`.options
- carries optional attributes valuespublic static ReduceAny.Options keepDims(Boolean keepDims)
keepDims
- If true, retain reduced dimensions with length 1.public Output<Boolean> asOutput()
Operand
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.
asOutput
in interface Operand<Boolean>
OperationBuilder.addInput(Output)
Copyright © 2022. All rights reserved.