23a41cfcac5976cab47133fed2f6f53d061e9173,tensorlayer/layers/core.py,Layer,__str__,#Layer#,319

Before Change



    def __str__(self):
        print("TODO: Hao Dong: in graph mode, layers have outputs, model has all_outputs")
        return "  Last layer is: %s (%s) %s" % (self.__class__.__name__, self.name, self.outputs.get_shape().as_list())

    def __getitem__(self, key):

After Change



    def __str__(self):
        return "  %s (%s) outputs_shape: %s" % (self.__class__.__name__, self.name,
                [o.shape.as_list() for o in self.outputs])
        // self._outputs_shape)//outputs.get_shape().as_list())

    // def __getitem__(self, key):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: tensorlayer/tensorlayer
Commit Name: 23a41cfcac5976cab47133fed2f6f53d061e9173
Time: 2019-01-16
Author: dhsig552@163.com
File Name: tensorlayer/layers/core.py
Class Name: Layer
Method Name: __str__


Project Name: NifTK/NiftyNet
Commit Name: 3a5ace850931e91c55a692ae7ec716a57e66f4e6
Time: 2018-01-26
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/layer/loss_segmentation.py
Class Name: LossFunction
Method Name: layer_op


Project Name: NifTK/NiftyNet
Commit Name: 4421754f9886233e90563eb8088348bb36024095
Time: 2018-01-12
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/layer/loss_segmentation.py
Class Name: LossFunction
Method Name: layer_op