@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.MaxPoolWithArgmax extends Pointer
argmax are flattened, so that a maximum value at position
[b, y, x, c] becomes flattened index
((b * height + y) * width + x) * channels + c.
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.
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 |
tensorflow.MaxPoolWithArgmax.Attrs
Optional attribute setters for MaxPoolWithArgmax
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Modifier and Type | Method and Description |
|---|---|
tensorflow.Output |
argmax() |
tensorflow.MaxPoolWithArgmax |
argmax(tensorflow.Output argmax) |
tensorflow.Operation |
operation() |
tensorflow.MaxPoolWithArgmax |
operation(tensorflow.Operation operation) |
tensorflow.Output |
output() |
tensorflow.MaxPoolWithArgmax |
output(tensorflow.Output output) |
static tensorflow.MaxPoolWithArgmax.Attrs |
Targmax(int x) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic MaxPoolWithArgmax(Pointer p)
Pointer.Pointer(Pointer).public MaxPoolWithArgmax(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input input, @tensorflow.ArraySlice IntPointer ksize, @tensorflow.ArraySlice IntPointer strides, @tensorflow.StringPiece BytePointer padding)
public MaxPoolWithArgmax(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input input, @tensorflow.ArraySlice IntBuffer ksize, @tensorflow.ArraySlice IntBuffer strides, @tensorflow.StringPiece String padding)
public MaxPoolWithArgmax(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input input, @tensorflow.ArraySlice int[] ksize, @tensorflow.ArraySlice int[] strides, @tensorflow.StringPiece BytePointer padding)
public MaxPoolWithArgmax(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input input, @tensorflow.ArraySlice IntPointer ksize, @tensorflow.ArraySlice IntPointer strides, @tensorflow.StringPiece String padding)
public MaxPoolWithArgmax(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input input, @tensorflow.ArraySlice IntBuffer ksize, @tensorflow.ArraySlice IntBuffer strides, @tensorflow.StringPiece BytePointer padding)
public MaxPoolWithArgmax(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input input, @tensorflow.ArraySlice int[] ksize, @tensorflow.ArraySlice int[] strides, @tensorflow.StringPiece String padding)
public MaxPoolWithArgmax(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input input, @tensorflow.ArraySlice IntPointer ksize, @tensorflow.ArraySlice IntPointer strides, @tensorflow.StringPiece BytePointer padding, @Const @ByRef tensorflow.MaxPoolWithArgmax.Attrs attrs)
public MaxPoolWithArgmax(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input input, @tensorflow.ArraySlice IntBuffer ksize, @tensorflow.ArraySlice IntBuffer strides, @tensorflow.StringPiece String padding, @Const @ByRef tensorflow.MaxPoolWithArgmax.Attrs attrs)
public MaxPoolWithArgmax(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input input, @tensorflow.ArraySlice int[] ksize, @tensorflow.ArraySlice int[] strides, @tensorflow.StringPiece BytePointer padding, @Const @ByRef tensorflow.MaxPoolWithArgmax.Attrs attrs)
public MaxPoolWithArgmax(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input input, @tensorflow.ArraySlice IntPointer ksize, @tensorflow.ArraySlice IntPointer strides, @tensorflow.StringPiece String padding, @Const @ByRef tensorflow.MaxPoolWithArgmax.Attrs attrs)
public MaxPoolWithArgmax(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input input, @tensorflow.ArraySlice IntBuffer ksize, @tensorflow.ArraySlice IntBuffer strides, @tensorflow.StringPiece BytePointer padding, @Const @ByRef tensorflow.MaxPoolWithArgmax.Attrs attrs)
public MaxPoolWithArgmax(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input input, @tensorflow.ArraySlice int[] ksize, @tensorflow.ArraySlice int[] strides, @tensorflow.StringPiece String padding, @Const @ByRef tensorflow.MaxPoolWithArgmax.Attrs attrs)
@ByVal public static tensorflow.MaxPoolWithArgmax.Attrs Targmax(@Cast(value="tensorflow::DataType") int x)
@ByRef public tensorflow.Operation operation()
public tensorflow.MaxPoolWithArgmax operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output output()
public tensorflow.MaxPoolWithArgmax output(tensorflow.Output output)
@ByRef public tensorflow.Output argmax()
public tensorflow.MaxPoolWithArgmax argmax(tensorflow.Output argmax)
Copyright © 2019. All rights reserved.