2b4a7b0ceba071e026d618cf5898fcaa3d0e862f,hypergan/configurable_component.py,ConfigurableComponent,layer_pad,#ConfigurableComponent#Any#Any#Any#,903

Before Change


        return target
    def layer_pad(self, net, args, options):
        options = hc.Config(options)
        s = self.ops.shape(net)
        sizew = s[1]//2
        sizeh = s[2]//2
        net,_,_ = tf.pad(net, [[0,0],[ sizew,sizew],[ sizeh,sizeh],[ 0,0]])

        return net 

After Change


    def layer_pad(self, net, args, options):
        options = hc.Config(options)

        return nn.ZeroPad2d((int(args[0]), int(args[1]), int(args[2]), int(args[3])))

    def layer_resize_conv(self, net, args, options):
        options = hc.Config(options)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: HyperGAN/HyperGAN
Commit Name: 2b4a7b0ceba071e026d618cf5898fcaa3d0e862f
Time: 2020-02-17
Author: martyn@255bits.com
File Name: hypergan/configurable_component.py
Class Name: ConfigurableComponent
Method Name: layer_pad


Project Name: tensorflow/tpu
Commit Name: d7d183281a6c25be0d5556bcec6b54615adb7b34
Time: 2020-06-01
Author: gardener@tensorflow.org
File Name: models/official/detection/ops/postprocess_ops.py
Class Name: GenericDetectionGenerator
Method Name: __call__


Project Name: HyperGAN/HyperGAN
Commit Name: 2b4a7b0ceba071e026d618cf5898fcaa3d0e862f
Time: 2020-02-17
Author: martyn@255bits.com
File Name: hypergan/configurable_component.py
Class Name: ConfigurableComponent
Method Name: layer_pad


Project Name: HyperGAN/HyperGAN
Commit Name: 365c861ccac7588596907b0cff8ddf69cc7a966c
Time: 2020-07-27
Author: mikkel@255bits.com
File Name: hypergan/samplers/grid_sampler.py
Class Name: GridSampler
Method Name: _sample