@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.FractionalAvgPool extends Pointer
[batch, height, width, channels].
* pooling_ratio: Pooling ratio for each dimension of value, currently only
supports row and col dimension and should be >= 1.0. For example, a valid
pooling ratio looks like [1.0, 1.44, 1.73, 1.0]. The first and last elements
must be 1.0 because we don't allow pooling on batch and channels
dimensions. 1.44 and 1.73 are pooling ratio on height and width dimensions
respectively.
Optional attributes (see Attrs):
* pseudo_random: When set to True, generates the pooling sequence in a
pseudorandom fashion, otherwise, in a random fashion. Check paper [Benjamin
Graham, Fractional Max-Pooling](http://arxiv.org/abs/1412.6071) for
difference between pseudorandom and random.
* overlapping: When set to True, it means when pooling, the values at the boundary
of adjacent pooling cells are used by both cells. For example:
index 0 1 2 3 4
value 20 5 16 3 7
If the pooling sequence is [0, 2, 4], then 16, at index 2 will be used twice.
The result would be [41/3, 26/3] for fractional avg pooling.
* deterministic: When set to True, a fixed pooling region will be used when
iterating over a FractionalAvgPool node in the computation graph. Mainly used
in unit test to make FractionalAvgPool deterministic.
* seed: If either seed or seed2 are set to be non-zero, the random number
generator is seeded by the given seed. Otherwise, it is seeded by a
random seed.
* seed2: An second seed to avoid seed collision.
Returns:
* Output output: output tensor after fractional avg pooling.
* Output row_pooling_sequence: row pooling sequence, needed to calculate gradient.
* Output col_pooling_sequence: column pooling sequence, needed to calculate gradient.| Modifier and Type | Class and Description |
|---|---|
static class |
tensorflow.FractionalAvgPool.Attrs
Optional attribute setters for FractionalAvgPool
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
FractionalAvgPool(Pointer p)
Pointer cast constructor.
|
FractionalAvgPool(tensorflow.Scope scope,
tensorflow.Input value,
float... pooling_ratio) |
FractionalAvgPool(tensorflow.Scope scope,
tensorflow.Input value,
float[] pooling_ratio,
tensorflow.FractionalAvgPool.Attrs attrs) |
FractionalAvgPool(tensorflow.Scope scope,
tensorflow.Input value,
FloatBuffer pooling_ratio) |
FractionalAvgPool(tensorflow.Scope scope,
tensorflow.Input value,
FloatBuffer pooling_ratio,
tensorflow.FractionalAvgPool.Attrs attrs) |
FractionalAvgPool(tensorflow.Scope scope,
tensorflow.Input value,
FloatPointer pooling_ratio) |
FractionalAvgPool(tensorflow.Scope scope,
tensorflow.Input value,
FloatPointer pooling_ratio,
tensorflow.FractionalAvgPool.Attrs attrs) |
| Modifier and Type | Method and Description |
|---|---|
tensorflow.Output |
col_pooling_sequence() |
tensorflow.FractionalAvgPool |
col_pooling_sequence(tensorflow.Output col_pooling_sequence) |
static tensorflow.FractionalAvgPool.Attrs |
Deterministic(boolean x) |
tensorflow.Operation |
operation() |
tensorflow.FractionalAvgPool |
operation(tensorflow.Operation operation) |
tensorflow.Output |
output() |
tensorflow.FractionalAvgPool |
output(tensorflow.Output output) |
static tensorflow.FractionalAvgPool.Attrs |
Overlapping(boolean x) |
static tensorflow.FractionalAvgPool.Attrs |
PseudoRandom(boolean x) |
tensorflow.Output |
row_pooling_sequence() |
tensorflow.FractionalAvgPool |
row_pooling_sequence(tensorflow.Output row_pooling_sequence) |
static tensorflow.FractionalAvgPool.Attrs |
Seed(long x) |
static tensorflow.FractionalAvgPool.Attrs |
Seed2(long 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 FractionalAvgPool(Pointer p)
Pointer.Pointer(Pointer).public FractionalAvgPool(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input value, @tensorflow.ArraySlice FloatPointer pooling_ratio)
public FractionalAvgPool(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input value, @tensorflow.ArraySlice FloatBuffer pooling_ratio)
public FractionalAvgPool(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input value, @tensorflow.ArraySlice float... pooling_ratio)
public FractionalAvgPool(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input value, @tensorflow.ArraySlice FloatPointer pooling_ratio, @Const @ByRef tensorflow.FractionalAvgPool.Attrs attrs)
public FractionalAvgPool(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input value, @tensorflow.ArraySlice FloatBuffer pooling_ratio, @Const @ByRef tensorflow.FractionalAvgPool.Attrs attrs)
public FractionalAvgPool(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input value, @tensorflow.ArraySlice float[] pooling_ratio, @Const @ByRef tensorflow.FractionalAvgPool.Attrs attrs)
@ByVal public static tensorflow.FractionalAvgPool.Attrs PseudoRandom(@Cast(value="bool") boolean x)
@ByVal public static tensorflow.FractionalAvgPool.Attrs Overlapping(@Cast(value="bool") boolean x)
@ByVal public static tensorflow.FractionalAvgPool.Attrs Deterministic(@Cast(value="bool") boolean x)
@ByVal public static tensorflow.FractionalAvgPool.Attrs Seed(@Cast(value="tensorflow::int64") long x)
@ByVal public static tensorflow.FractionalAvgPool.Attrs Seed2(@Cast(value="tensorflow::int64") long x)
@ByRef public tensorflow.Operation operation()
public tensorflow.FractionalAvgPool operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output output()
public tensorflow.FractionalAvgPool output(tensorflow.Output output)
@ByRef public tensorflow.Output row_pooling_sequence()
public tensorflow.FractionalAvgPool row_pooling_sequence(tensorflow.Output row_pooling_sequence)
@ByRef public tensorflow.Output col_pooling_sequence()
public tensorflow.FractionalAvgPool col_pooling_sequence(tensorflow.Output col_pooling_sequence)
Copyright © 2019. All rights reserved.