thank you very much for your advice, i find that wrapping legacy.nn.Max into  torch.nn.Sequential often cause error below:
typeError: torch.legacy.nn.some_module.some_module is not a Module subclass

So if torch.legacy.nn is not compitible with pytorch regular modules, what’s the point of the torch.legacy.nn, if not, can you give me some template code on how to use them. Much obliged if you do.