What happens when you have the same number of dimension and in one dimension, the size don’t match but one is 1, you expand to the new size.
In you case, you have final = t12.expand(2,2,2) + t11.expand(2,2,2).
This basically repeats the existing Tensor along the dimension that was of size 1.