How are tensors of different shapes combined