V - data type for output() output@Operator public final class ArgMax<V extends Number> extends PrimitiveOp implements Operand<V>
Note that in case of ties the identity of the return value is not guaranteed.
operation| Modifier and Type | Method and Description |
|---|---|
Output<V> |
asOutput()
Returns the symbolic handle of a tensor.
|
static <T,U extends Number> |
create(Scope scope,
Operand<T> input,
Operand<U> dimension)
Factory method to create a class to wrap a new ArgMax operation to the graph, using default output types.
|
static <V extends Number,T,U extends Number> |
create(Scope scope,
Operand<T> input,
Operand<U> dimension,
Class<V> outputType)
Factory method to create a class to wrap a new ArgMax operation to the graph.
|
Output<V> |
output() |
equals, hashCode, toStringpublic static <V extends Number,T,U extends Number> ArgMax<V> create(Scope scope, Operand<T> input, Operand<U> dimension, Class<V> outputType)
scope - current graph scopeinput - dimension - int32 or int64, must be in the range `[-rank(input), rank(input))`.
Describes which dimension of the input Tensor to reduce across. For vectors,
use dimension = 0.outputType - public static <T,U extends Number> ArgMax<Long> create(Scope scope, Operand<T> input, Operand<U> dimension)
scope - current graph scopeinput - dimension - int32 or int64, must be in the range `[-rank(input), rank(input))`.
Describes which dimension of the input Tensor to reduce across. For vectors,
use dimension = 0.public Output<V> asOutput()
OperandInputs 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<V extends Number>OperationBuilder.addInput(Output)Copyright © 2015–2019. All rights reserved.