fb5a8a3e0a73eea528ac398c04ba20a96ef575e1,examples/experimental/next-frame.py,NextFrameGAN,d_parameters,#NextFrameGAN#,117

Before Change


            yield param

    def d_parameters(self):
        return self.discriminator.parameters()

    def regularize_gradient_norm(self, calculate_loss):
        x = Variable(self.x, requires_grad=True).cuda()
        d1_logits = self.discriminator(x, context={"c":self.c})

After Change


        if self.config.c_discriminator:
            for param in self.c_discriminator.parameters():
                yield param
        if self.config.video_discriminator:
            for param in self.video_discriminator.parameters():
                yield param
        if self.config.image_discriminator:
            for param in self.image_discriminator.parameters():
                yield param
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: HyperGAN/HyperGAN
Commit Name: fb5a8a3e0a73eea528ac398c04ba20a96ef575e1
Time: 2020-02-17
Author: martyn@255bits.com
File Name: examples/experimental/next-frame.py
Class Name: NextFrameGAN
Method Name: d_parameters


Project Name: r9y9/deepvoice3_pytorch
Commit Name: 43579764f35de6b8bac2b18b52a06e4e11b705b2
Time: 2017-12-13
Author: zryuichi@gmail.com
File Name: deepvoice3_pytorch/__init__.py
Class Name: MultiSpeakerTTSModel
Method Name: get_trainable_parameters


Project Name: kengz/SLM-Lab
Commit Name: ff5da2b2bfd03234519927b966923e8baecf6616
Time: 2018-01-02
Author: lgraesser@users.noreply.github.com
File Name: slm_lab/agent/net/convnet.py
Class Name: ConvNet
Method Name: training_step