Adding print statements to VisionTransformer #441
-
Hi, I'd like to understand the ViT model better by adding some print statements to the forward pass of ViT, to check the intermediate hidden states, verify shapes and so on. I've forked pytorch-image-models and added some print statements as follows:
Are the hidden states of shape |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I litter my models with prints all the time when debugging and getting them working. Maybe you clobbered over your modified copy of pytorch-image-models with the pip timm? |
Beta Was this translation helpful? Give feedback.
I litter my models with prints all the time when debugging and getting them working. Maybe you clobbered over your modified copy of pytorch-image-models with the pip timm?