c1fbc761e10e06effa49ede1f8dbc04189999bd5,niftynet/layer/post_processing.py,PostProcessingLayer,layer_op,#PostProcessingLayer#,30

Before Change


        if self.func == "SOFTMAX":
            output_tensor = tf.cast(tf.nn.softmax(inputs), tf.float32)
        elif self.func == "ARGMAX":
            output_tensor = tf.to_int64(tf.argmax(inputs, -1))
            output_tensor = tf.expand_dims(output_tensor, axis=-1)
        elif self.func == "IDENTITY":
            output_tensor = tf.cast(inputs, tf.float32)
        return output_tensor

After Change


        if self.func == "SOFTMAX":
            output_tensor = tf.cast(tf.nn.softmax(inputs), tf.float32)
        elif self.func == "ARGMAX":
            output_tensor = tf.argmax(inputs, -1,output_type=tf.int32)
            output_tensor = tf.expand_dims(output_tensor, axis=-1)
        elif self.func == "IDENTITY":
            output_tensor = tf.cast(inputs, tf.float32)
        return output_tensor
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 2

Instances


Project Name: NifTK/NiftyNet
Commit Name: c1fbc761e10e06effa49ede1f8dbc04189999bd5
Time: 2017-08-26
Author: eli.gibson@gmail.com
File Name: niftynet/layer/post_processing.py
Class Name: PostProcessingLayer
Method Name: layer_op


Project Name: NifTK/NiftyNet
Commit Name: c951b7c434ca313053aaccd87ab4569decc83142
Time: 2017-08-28
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/layer/post_processing.py
Class Name: PostProcessingLayer
Method Name: layer_op


Project Name: chainer/chainercv
Commit Name: 1af165c8d2aab7f72c333ffe0e5e26eb06fe1e06
Time: 2017-06-16
Author: Hakuyume@users.noreply.github.com
File Name: chainercv/links/model/segnet/segnet_basic.py
Class Name: SegNetBasic
Method Name: predict


Project Name: NifTK/NiftyNet
Commit Name: c1fbc761e10e06effa49ede1f8dbc04189999bd5
Time: 2017-08-26
Author: eli.gibson@gmail.com
File Name: niftynet/layer/post_processing.py
Class Name: PostProcessingLayer
Method Name: layer_op


Project Name: NifTK/NiftyNet
Commit Name: 7f45299640c63f6fa903e59c7764bf8f03c72c1d
Time: 2017-08-14
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/layer/post_processing.py
Class Name: PostProcessingLayer
Method Name: layer_op


Project Name: NVIDIA/OpenSeq2Seq
Commit Name: 4ac948cba8b5e91df5329c325a3ef3e1e833e270
Time: 2018-06-06
Author: igor.a.gitman@gmail.com
File Name: open_seq2seq/models/image2label.py
Class Name: Image2Label
Method Name: evaluate