Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension of pytorch WN2d layer to 1d convolution/deconvolution #3

Open
lifelongeek opened this issue Oct 10, 2017 · 0 comments
Open

Comments

@lifelongeek
Copy link

lifelongeek commented Oct 10, 2017

Thanks for sharing interesting, practical work. I am thinking about replacing BN to proposed WN layer for speech GAN.

Is it possible to apply 'WeightNormalizedConv2d' & 'WeightNormalizedConvTranspose2d' layer to 1d convolution/deconvolution by simply put kernel size as tuple (H, window_size)? H is height of data.

Or can we think about new module with F.conv1d?
For example, its forward computation looks like this

	def forward(self, input):
		return self.norm_scale_bias(F.conv1d(input, self.weight, None, self.stride,
						self.padding, self.dilation, 1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant