tf.contrib.layers.avg_pool3d( inputs, kernel_size, stride=2, padding='VALID', data_format=DATA_FORMAT_NDHWC, outputs_collections=None, scope=None )
Adds a 3D average pooling op.
It is assumed that the pooling is done per image but not in batch or channels.
inputs: A 5-D tensor of shape
[batch_size, depth, height, width, channels]if
[batch_size, channels, depth, height, width]if
kernel_size: A list of length 3: [kernel_depth, kernel_height, kernel_width] of the pooling kernel over which the op is computed. Can be an int if both values are the same.
stride: A list of length 3: [stride_depth, stride_height, stride_width]. Can be an int if both strides are the same. Note that presently both strides must have the same value.
padding: The padding method, either 'VALID' or 'SAME'.
data_format: A string.
outputs_collections: The collections to which the outputs are added.
scope: Optional scope for name_scope.
Tensor representing the results of the pooling operation.
© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.