8a3148f6f973652500853e656274e65070edaf7e,hypergan/losses/least_squares_loss.py,LeastSquaresLoss,create,#LeastSquaresLoss#,12

Before Change


            d_real = gan.graph.d_reals[config.discriminator]
            d_fake = gan.graph.d_fakes[config.discriminator]

        net = tf.concat([d_real, d_fake], 0)
        net = config.reduce(net, axis=1)
        s = [int(x) for x in net.get_shape()]
        net = tf.reshape(net, [s[0], -1])
        d_real = tf.slice(net, [0,0], [s[0]//2,-1])
        d_fake = tf.slice(net, [s[0]//2,0], [s[0]//2,-1])

After Change



        net = config.reduce(net, axis=1)

        shape = ops.shape(net)
        net = tf.reshape(net, [shape[0], -1])

        //TODO can we generalize this based on `gan.inputs`?
        // split in half
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: HyperGAN/HyperGAN
Commit Name: 8a3148f6f973652500853e656274e65070edaf7e
Time: 2017-06-03
Author: martyn@255bits.com
File Name: hypergan/losses/least_squares_loss.py
Class Name: LeastSquaresLoss
Method Name: create


Project Name: GPflow/GPflow
Commit Name: a28284b9bd72fb5f180d489327e6e5571d9aa8d8
Time: 2019-09-09
Author: art.art.v@gmail.com
File Name: gpflow/conditionals/util.py
Class Name:
Method Name: base_conditional


Project Name: google/tf_mesh_renderer
Commit Name: 8aaabd6dfcd2f4ae5618ef08657bbba82e8bd69f
Time: 2019-05-28
Author: david.erler@gmail.com
File Name: mesh_renderer/rasterize_triangles.py
Class Name:
Method Name: rasterize_clip_space