The first has literally 0 = 0*3*3 elements. The second has 9 = 3*3 elements.
You didn’t ask, but as background: Zero-sized tensors are not useful per se (and the earliest PyTorch versions didn’t support them), but in many applications it turned out that it is good to have them to more gracefully deal with corner cases.
Best regards
Thomas