tf.contrib.layers.maxout(
inputs,
num_units,
axis=-1,
scope=None
)
Defined in tensorflow/contrib/layers/python/layers/layers.py.
Adds a maxout op from https://arxiv.org/abs/1302.4389
"Maxout Networks" Ian J. Goodfellow, David Warde-Farley, Mehdi Mirza, Aaron Courville, Yoshua Bengio
Usually the operation is performed in the filter/channel dimension. This can also be used after fully-connected layers to reduce number of features.
inputs: Tensor inputnum_units: Specifies how many features will remain after maxout in the axis dimension (usually channel). This must be multiple of number of axis.axis: The dimension where max pooling will be performed. Default is the last dimension.scope: Optional scope for variable_scope.A Tensor representing the results of the pooling operation.
ValueError: if num_units is not multiple of number of features.
© 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.
https://www.tensorflow.org/api_docs/python/tf/contrib/layers/maxout