Closed Freed-Wu closed 1 year ago
I have the same problem when setting weight in __init__()
with nn.Parameter()
manually and call nn.functional.conv
in forward()
I suggest https://github.com/TylerYep/torchinfo which support displaying:
Total params: 11,689,512
Trainable params: 11,689,512
Non-trainable params: 0
Total mult-adds (G): 2.37
Thanks.