I  want to us maxout activation in pytorch, and I use torch.max() function to implement.
class Maxout(nn.Module):
    def __init__(self):
        super(Maxout, self).__init__()
    def forward(self, x, y):
        return x.max(y)

Is it right?