how to get element-wise comparison and take element-wise maximum? is there a function in pytorch？I think a for loop is too slow
eg: tensor_1=[1,2,3,4] tensor_2=[-10,-20,10,20]
I want to get a tensor=[1,2,10,20]