Calculates the addition of two tensors.