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

Before Change



        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: 4

Non-data size: 3

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: geomstats/geomstats
Commit Name: a87e4416265ccb7e1f57cfa263e2ca5fcea29cdd
Time: 2018-09-27
Author: ninamio78@gmail.com
File Name: geomstats/special_orthogonal_group.py
Class Name: SpecialOrthogonalGroup
Method Name: skew_matrix_from_vector


Project Name: dpressel/mead-baseline
Commit Name: 7fa458e2c4c5df5a9d2cc4e66b2472cd9f3377a8
Time: 2018-09-17
Author: dpressel@gmail.com
File Name: python/baseline/tf/tfy.py
Class Name:
Method Name: pool_chars


Project Name: bonlime/keras-deeplab-v3-plus
Commit Name: c67142a7d82ecf146f25ccb0ac1618f127bf02fa
Time: 2020-04-22
Author: bmanderson@mdanderson.org
File Name: model.py
Class Name:
Method Name: Deeplabv3