Put it back maxout

parent 345a39bd
Pipeline #11839 canceled with stages
from .Layer import Layer
from .Conv1D import Conv1D
#from .Maxout import maxout
from .Maxout import maxout
# gets sphinx autodoc done right - don't remove it
......@@ -19,7 +19,8 @@ def __appropriate__(*args):
__appropriate__(
Layer,
Conv1D
Conv1D,
Maxout
)
__all__ = [_ for _ in dir() if not _.startswith('_')]
......@@ -9,7 +9,7 @@ from bob.learn.tensorflow.layers import maxout
from nose.tools import assert_raises_regexp
slim = tf.contrib.slim
"""
def test_simple():
x = np.zeros([64, 10, 36])
graph = maxout(x, num_units=3)
......@@ -32,4 +32,4 @@ def test_invalid_shape():
graph = slim.conv2d(x, 3, [3, 3])
with assert_raises_regexp(ValueError, 'number of features'):
graph = maxout(graph, num_units=2)
"""
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment