I wonder why you don't use the nn.Linear and how is the z as long as the w_dim?
I wonder why you don't use the nn.Linear and how is the z as long as the w_dim?