FractionalAvgPool.Options

public static class FractionalAvgPool.Options

Optional attributes for FractionalAvgPool

Public Methods

FractionalAvgPool.Options
deterministic(Boolean deterministic)
FractionalAvgPool.Options
overlapping(Boolean overlapping)
FractionalAvgPool.Options
pseudoRandom(Boolean pseudoRandom)
FractionalAvgPool.Options
seed(Long seed)
FractionalAvgPool.Options
seed2(Long seed2)

Inherited Methods

Public Methods

public FractionalAvgPool.Options deterministic (Boolean deterministic)

Parameters
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.

public FractionalAvgPool.Options overlapping (Boolean overlapping)

Parameters
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.

public FractionalAvgPool.Options pseudoRandom (Boolean pseudoRandom)

Parameters
pseudoRandom 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.

public FractionalAvgPool.Options seed (Long seed)

Parameters
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.

public FractionalAvgPool.Options seed2 (Long seed2)

Parameters
seed2 An second seed to avoid seed collision.