@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class ArgMax extends Pointer
python
import tensorflow as tf
a = [1, 10, 26.9, 2.8, 166.32, 62.3]
b = tf.math.argmax(input = a)
c = tf.keras.backend.eval(b)
# c = 4
# here a[4] = 166.32 which is the largest element of a across axis 0
Arguments:
* scope: A Scope object
* 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.
Returns:
* Output
: The output tensor.Modifier and Type | Class and Description |
---|---|
static class |
ArgMax.Attrs
Optional attribute setters for ArgMax
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
ArgMax(Pointer p)
Pointer cast constructor.
|
ArgMax(Scope scope,
Input input,
Input dimension) |
ArgMax(Scope scope,
Input input,
Input dimension,
ArgMax.Attrs attrs) |
Modifier and Type | Method and Description |
---|---|
Input |
asInput() |
Output |
asOutput() |
Node |
node() |
Operation |
operation() |
ArgMax |
operation(Operation setter) |
Output |
output() |
ArgMax |
output(Output setter) |
static ArgMax.Attrs |
OutputType(int x) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public ArgMax(Pointer p)
Pointer(Pointer)
.public Node node()
@ByVal public static ArgMax.Attrs OutputType(@Cast(value="tensorflow::DataType") int x)
Copyright © 2022. All rights reserved.