Hi ptrblck, thanks for the reply.
As you see in the forward function self.W_di = nn.Sequential(...) is how I assigned nn.Sequential to self.W_di. However, when the forward is called, I’m getting an error saying
TypeError: cannot assign 'torch.nn.modules.container.Sequential' as parameter 'W_di' (torch.nn.Parameter or None expected)
I’m not trying to call parameters nor a subset of params. Just trying to run the training but got this error.
pytorch 1.1.0