@application(inputs=['input_'], outputs=['output'])
    def apply(self, input_):
        last_dim = input_.shape[-1]
        output_dim = last_dim // self.num_pieces
        new_shape = ([input_.shape[i] for i in range(input_.ndim - 1)] +
                     [output_dim, self.num_pieces])
        output = tensor.max(input_.reshape(new_shape, ndim=input_.ndim + 1),
                            axis=input_.ndim)
        return output
L{replaceInFile} replaces data in a file based on a dict. A key from
dataset/ETHPy150Open rizar/attention-lvcsr/libs/blocks/blocks/bricks/simple.py/Maxout.apply--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/python/test/test_release.py/UtilityTest.test_replaceInFile