ede220455551e37c2a288c284abb6511bc75bf0b,musegan/modules.py,PhraseDiscriminator,__call__,#PhraseDiscriminator#Any#Any#,115

Before Change


                              kernels=[2, 1], strides=[1, 1], name="h0"))
            h1 = lrelu(conv2d(concat_cond_conv(h0, self.condition), self.output_dim, kernels=[3, 1], strides=[3, 1],
                              name="h1"))
            h1 = tf.squeeze(tf.squeeze(h1, axis=2), axis=1)
        return h1

After Change


            h1 = lrelu(conv2d(h0, 128, kernels=[3, 1], strides=[3, 1],name="h1"))

            //// linear
            h2 = tf.reshape(h1, [-1, np.product([s.value for s in h1.get_shape()[1:]])])
            h2 = lrelu(linear(h2, 1024, name="h2"))
            h3 = linear(h2, 1, name="h3")
        return h3


class ImageGenerator(object):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: salu133445/musegan
Commit Name: ede220455551e37c2a288c284abb6511bc75bf0b
Time: 2018-02-02
Author: archer837@yahoo.com.tw
File Name: musegan/modules.py
Class Name: PhraseDiscriminator
Method Name: __call__


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: d3ac72d887c808a90948db469d8db2f364825992
Time: 2018-04-09
Author: M.N.Tran@ibm.com
File Name: src/classifiers/tensorflow.py
Class Name: TFClassifier
Method Name: class_gradient


Project Name: tensorflow/agents
Commit Name: 517b1850068dbc533f614b5b287627cd75984b73
Time: 2020-06-10
Author: bartok@google.com
File Name: tf_agents/bandits/networks/global_and_arm_feature_network.py
Class Name: GlobalAndArmCommonTowerNetwork
Method Name: call