1eeb316d66b5ab7c377f1926fc24302dd1e9d418,VAEs/vq-vae/models/vq_vae.py,Model,decoder,#Model#Any#,203

Before Change


	def decoder(self, x):
		with nn.parameter_scope("decoder"):
			out = PF.convolution(x, self.num_hidden, (3,3), stride=(1,1),
				pad=(1,1), name="conv_1", rng=self.rng)
			out = self.decoder_res_stack(out)
			out = PF.deconvolution(out, self.num_hidden//2, (4,4), stride=(2,2),
				pad=(1,1), name="deconv_1", rng=self.rng)

After Change


			out = PF.deconvolution(out, self.num_hidden, (4,4), stride=(2,2),
				pad=(1,1), name="deconv_1", rng=self.rng)
			out = PF.batch_normalization(out)
			out = F.relu(out)
			out = PF.deconvolution(out, self.in_channels, (4,4), stride=(2,2),
				pad=(1,1), name="deconv_2", rng=self.rng) 
			out = F.tanh(out)

		return out

	def __call__(self, img, iteration):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: sony/nnabla-examples
Commit Name: 1eeb316d66b5ab7c377f1926fc24302dd1e9d418
Time: 2019-07-15
Author: Krishna.Wadhwani@sony.com
File Name: VAEs/vq-vae/models/vq_vae.py
Class Name: Model
Method Name: decoder


Project Name: stanfordnlp/stanza
Commit Name: a784e98ebeb41f0001768cd02acf3301c7e50f0d
Time: 2018-08-15
Author: qipeng@noreply.github.com
File Name: models/common/hlstm.py
Class Name: HLSTMCell
Method Name: forward


Project Name: maciejkula/spotlight
Commit Name: 396303a7b84fe4f8b304a5878c487ff0b3a16097
Time: 2017-07-08
Author: maciej.kula@gmail.com
File Name: spotlight/sequence/representations.py
Class Name: CNNNet
Method Name: user_representation