Somethink like cmax in the original torch

Hi,

is there something like cmax from the original torch? See this. How could I do similar in pytorch?

Ah, I’m stupid. torch.max has an overload that does exactly this. In pytorch, both max and cmax are united in a single function.