14a9d386baf93b8266fa21277b40d669a4e397d2,pyannote/audio/embedding/models.py,TristouNet,__call__,#TristouNet#Any#,83
Before Change
// stack final dense layer
if self.space == "sphere":
activation = "tanh"
elif self.space == "quadrant":
activation = "sigmoid"
x = Dense(self.output_dim, activation=activation)(x)
// stack L2 normalization layer
embeddings = Lambda(lambda x: K.l2_normalize(x, axis=-1),
After Change
x = mlp(x)
// stack L2 normalization layer
normalize = Lambda(lambda x: K.l2_normalize(x, axis=-1),
name="normalize")
embeddings = normalize(x)
return Model(input=inputs, output=embeddings)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: pyannote/pyannote-audio
Commit Name: 14a9d386baf93b8266fa21277b40d669a4e397d2
Time: 2016-11-14
Author: hbredin@users.noreply.github.com
File Name: pyannote/audio/embedding/models.py
Class Name: TristouNet
Method Name: __call__
Project Name: pyannote/pyannote-audio
Commit Name: 14a9d386baf93b8266fa21277b40d669a4e397d2
Time: 2016-11-14
Author: hbredin@users.noreply.github.com
File Name: pyannote/audio/embedding/models.py
Class Name: TrottiNet
Method Name: __call__
Project Name: NTMC-Community/MatchZoo
Commit Name: 24d8fe8af00c6e0e47985d8b609f396e85bda8e3
Time: 2019-01-10
Author: fanyixing111@hotmail.com
File Name: matchzoo/models/drmmtks.py
Class Name: DRMMTKS
Method Name: attention_layer
Project Name: NTMC-Community/MatchZoo
Commit Name: 24d8fe8af00c6e0e47985d8b609f396e85bda8e3
Time: 2019-01-10
Author: fanyixing111@hotmail.com
File Name: matchzoo/models/drmm.py
Class Name: DRMM
Method Name: attention_layer