Assume that there is an operation of concatenating some tensor B = [b1, b2, …, bn] (bi is vector) to another tensor A. When you don’t want B, you can simply set n = 0 without checking the shape of B, if PyTorch supports 0-dim tensor correctly.