Created by: zhangting2020
Add check for input channels and Attr(groups).
In maxout Op, there is no check for input channels and Attr(groups). If use below code, segmentation fault occurs. because the input channel(1) can not be divisible by groups
.
input = fluid.data(name='data', shape=[1, 1, 10, 10], dtype='float32')
out = fluid.layers.maxout(input, groups=5, axis=1)
This PR add the check. When running above code, it will print the message: