TypeError only integer tensors of a single element can be converted to an index

Dear pytorch users
As a freshman in pytorch.I am now design my first UNet to help me understand pytorch, I copy an UNet code from YOUTUBE and now i am going to print torchsize of different layer,But something goes wrong.
Would you mind give me some su

print(my_unetmodel) give you already some information.