Yes ,you are right. The quoted code is the _init_function of my model.
I defined some of the layers in one file, and call these layers in another file.

image.png1920×1040 187 KB


image.png1920×1040 204 KB

This is how I use your code, is it right?
And do I need to print the shape of tensors in all layers or just tensors in BatchNorm layers? Or could you please tell me the specific tensors I need to check? I am quite confused now.
Appreciate your help