Solved by Nikronic in post #2 
              
              
                Hi, 
torch.add(x, y) is equivalent to z = x + y. Similar to keras but only accepts 2 tensors. 
torch.cat((x, y), dim) (note that you need one more pair of parentheses like brackets in keras) will concatenate in given dimension, same as keras. 
Bests