@tom Thanks for your reply and also the pytorch team for such an amazing community.
The w shape must be [96, 128,128] when multiply by g. So, I can’t reshape it to [96, 16, 1024]. You gave me a good pointer though.