@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class MaxPoolWithArgmax extends Pointer
argmax
are flattened, so that a maximum value at position
[b, y, x, c]
becomes flattened index:
(y * width + x) * channels + c
if include_batch_in_index
is False;
((b * height + y) * width + x) * channels + c
if include_batch_in_index
is True.
The indices returned are always in [0, height) x [0, width)
before flattening,
even if padding is involved and the mathematically correct answer is outside
(either negative or too large). This is a bug, but fixing it is difficult to do
in a safe backwards compatible way, especially due to flattening.
Arguments:
* scope: A Scope object
* input: 4-D with shape [batch, height, width, channels]
. Input to pool over.
* ksize: The size of the window for each dimension of the input tensor.
* strides: The stride of the sliding window for each dimension of the
input tensor.
* padding: The type of padding algorithm to use.
Optional attributes (see Attrs
):
* include_batch_in_index: Whether to include batch dimension in flattened index of argmax
.
Returns:
* Output
output: The max pooled output tensor.
* Output
argmax: 4-D. The flattened indices of the max values chosen for each output.Modifier and Type | Class and Description |
---|---|
static class |
MaxPoolWithArgmax.Attrs
Optional attribute setters for MaxPoolWithArgmax
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Modifier and Type | Method and Description |
---|---|
Output |
argmax() |
MaxPoolWithArgmax |
argmax(Output setter) |
static MaxPoolWithArgmax.Attrs |
IncludeBatchInIndex(boolean x) |
Operation |
operation() |
MaxPoolWithArgmax |
operation(Operation setter) |
Output |
output() |
MaxPoolWithArgmax |
output(Output setter) |
static MaxPoolWithArgmax.Attrs |
Targmax(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 MaxPoolWithArgmax(Pointer p)
Pointer(Pointer)
.public MaxPoolWithArgmax(@Const @ByRef Scope scope, @ByVal Input input, @tensorflow.ArraySlice IntPointer ksize, @tensorflow.ArraySlice IntPointer strides, @tensorflow.StringPiece BytePointer padding)
public MaxPoolWithArgmax(@Const @ByRef Scope scope, @ByVal Input input, @tensorflow.ArraySlice IntBuffer ksize, @tensorflow.ArraySlice IntBuffer strides, @tensorflow.StringPiece String padding)
public MaxPoolWithArgmax(@Const @ByRef Scope scope, @ByVal Input input, @tensorflow.ArraySlice int[] ksize, @tensorflow.ArraySlice int[] strides, @tensorflow.StringPiece BytePointer padding)
public MaxPoolWithArgmax(@Const @ByRef Scope scope, @ByVal Input input, @tensorflow.ArraySlice IntPointer ksize, @tensorflow.ArraySlice IntPointer strides, @tensorflow.StringPiece String padding)
public MaxPoolWithArgmax(@Const @ByRef Scope scope, @ByVal Input input, @tensorflow.ArraySlice IntBuffer ksize, @tensorflow.ArraySlice IntBuffer strides, @tensorflow.StringPiece BytePointer padding)
public MaxPoolWithArgmax(@Const @ByRef Scope scope, @ByVal Input input, @tensorflow.ArraySlice int[] ksize, @tensorflow.ArraySlice int[] strides, @tensorflow.StringPiece String padding)
public MaxPoolWithArgmax(@Const @ByRef Scope scope, @ByVal Input input, @tensorflow.ArraySlice IntPointer ksize, @tensorflow.ArraySlice IntPointer strides, @tensorflow.StringPiece BytePointer padding, @Const @ByRef MaxPoolWithArgmax.Attrs attrs)
public MaxPoolWithArgmax(@Const @ByRef Scope scope, @ByVal Input input, @tensorflow.ArraySlice IntBuffer ksize, @tensorflow.ArraySlice IntBuffer strides, @tensorflow.StringPiece String padding, @Const @ByRef MaxPoolWithArgmax.Attrs attrs)
public MaxPoolWithArgmax(@Const @ByRef Scope scope, @ByVal Input input, @tensorflow.ArraySlice int[] ksize, @tensorflow.ArraySlice int[] strides, @tensorflow.StringPiece BytePointer padding, @Const @ByRef MaxPoolWithArgmax.Attrs attrs)
public MaxPoolWithArgmax(@Const @ByRef Scope scope, @ByVal Input input, @tensorflow.ArraySlice IntPointer ksize, @tensorflow.ArraySlice IntPointer strides, @tensorflow.StringPiece String padding, @Const @ByRef MaxPoolWithArgmax.Attrs attrs)
public MaxPoolWithArgmax(@Const @ByRef Scope scope, @ByVal Input input, @tensorflow.ArraySlice IntBuffer ksize, @tensorflow.ArraySlice IntBuffer strides, @tensorflow.StringPiece BytePointer padding, @Const @ByRef MaxPoolWithArgmax.Attrs attrs)
public MaxPoolWithArgmax(@Const @ByRef Scope scope, @ByVal Input input, @tensorflow.ArraySlice int[] ksize, @tensorflow.ArraySlice int[] strides, @tensorflow.StringPiece String padding, @Const @ByRef MaxPoolWithArgmax.Attrs attrs)
@ByVal public static MaxPoolWithArgmax.Attrs Targmax(@Cast(value="tensorflow::DataType") int x)
@ByVal public static MaxPoolWithArgmax.Attrs IncludeBatchInIndex(@Cast(value="bool") boolean x)
public MaxPoolWithArgmax operation(Operation setter)
public MaxPoolWithArgmax output(Output setter)
public MaxPoolWithArgmax argmax(Output setter)
Copyright © 2022. All rights reserved.