5ed913da1108b63c69d48d30b395ae35e576dc9f,keras/activations.py,,softmax,#Any#,5

Before Change




def softmax(x):
    return T.nnet.softmax(x.reshape((-1, x.shape[-1]))).reshape(x.shape)


def time_distributed_softmax(x):

After Change




def softmax(x):
    return K.softmax(x)


def softplus(x):
    return K.softplus(x)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: keras-team/keras
Commit Name: 5ed913da1108b63c69d48d30b395ae35e576dc9f
Time: 2015-11-15
Author: francois.chollet@gmail.com
File Name: keras/activations.py
Class Name:
Method Name: softmax


Project Name: keras-team/keras
Commit Name: 4c3495896e77a5a4ebfeff717feb3d04681d27e7
Time: 2015-06-23
Author: xavier@whirlscape.com
File Name: keras/activations.py
Class Name:
Method Name: time_distributed_softmax


Project Name: dmlc/gluon-nlp
Commit Name: 06ecac8d4a0132657e8cd8ef9eb3cc5a48d3859f
Time: 2019-10-24
Author: emilmont@gmail.com
File Name: src/gluonnlp/model/attention_cell.py
Class Name: MLPAttentionCell
Method Name: _compute_weight