Easy there a way to take the element-wise max between two tensors, as in tf.maximum? My current work-around is
def max(t1, t2):
    combined = torch.cat((t1.unsqueeze(2), t2.unsqueeze(2)), dim=2)
    return torch.max(combined, dim=2)[0].squeeze(2)

but it’s a bit clunky.