44a2f7c873f011784d2e6ac27ff40939dd32e066,tensorlayer/layers.py,Layer,print_layers,#Layer#,287

Before Change


    def print_layers(self):
        """ Print all info of layers in the network """
        for i, p in enumerate(self.all_layers):
            print("  layer %d: %s" % (i, str(p)))

    def count_params(self):
        """ Return the number of parameters in the network """
        n_params = 0

After Change


        """ Print all info of layers in the network """
        for i, layer in enumerate(self.all_layers):
            // print("  layer %d: %s" % (i, str(layer)))
            print("  layer {:3}: {:20} {:15}    {}".format(i, layer.name, str(layer.get_shape()), layer.dtype.name))

    def count_params(self):
        """ Return the number of parameters in the network """
        n_params = 0
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: tensorlayer/tensorlayer
Commit Name: 44a2f7c873f011784d2e6ac27ff40939dd32e066
Time: 2017-06-23
Author: dhsig552@163.com
File Name: tensorlayer/layers.py
Class Name: Layer
Method Name: print_layers


Project Name: HyperGAN/HyperGAN
Commit Name: 4dbc8efff06d16afd9325356e6139e61f65c5278
Time: 2016-10-22
Author: martyn@255bits.com
File Name: lib/gan.py
Class Name:
Method Name: generator


Project Name: tensorlayer/srgan
Commit Name: 17bf9da3f26d7f1a99879df647a9b58845028e80
Time: 2017-07-25
Author: dhsig552@163.com
File Name: tensorlayer/layers.py
Class Name: Layer
Method Name: print_layers