Hi ptrblck,
Thank you so much for replying. I ran the print code and the result was torch.Size([2, 4]).
Please how do i make the size of dim1 = 4 without implications, am i to pad it with zeros or ones? If i make the dim1 =4, will that not mean that there are four boxes when there are actually 2 in this example?